1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00
Files
stackexchange-dnscontrol/pkg/js/parse_tests/045-loc.js
2023-03-16 14:04:20 -04:00

80 lines
2.1 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

D("foo.com","none"
// LOC "subdomain", d1, m1, s1, "[NnSs]", d2, m2, s2, "[EeWw]", alt, siz, hp, vp)
, LOC("@", 42, 21, 54, "N", 71, 6, 18, "W", -24, 30, 0, 0) //42 21 54 N 71 06 18 W -24m 30m
, LOC("a", 42, 21, 43.952, "N", 71, 5, 6.344, "W", -24, 1, 200, 10) //42 21 43.952 N 71 5 6.344 W -24m 1m 200m
, LOC("b", 52, 14, 5, "N", 0, 8, 50, "E", 10, 0, 0, 0) //52 14 05 N 00 08 50 E 10m
, LOC("c", 32, 7, 19, "S",116, 2, 25, "E", 10, 0, 0, 0) //32 7 19 S 116 2 25 E 10m
, LOC("d", 42, 21, 28.764, "N", 71, 0, 51.617, "W", -44, 2000, 0, 0) //42 21 28.764 N 71 00 51.617 W -44m 2000m
// via the Decimal degrees to LOC builder.
, LOC_BUILDER_DD({
label: "big-ben",
x: 51.50084265331501,
y: -0.12462541415599787,
alt: 6,
})
, LOC_BUILDER_DD({
label: "white-house",
x: 38.89775977858357,
y: -77.03655125982903,
alt: 19,
ttl: "5m",
})
, LOC_BUILDER_DMS_STR({
label: "opera-house",
str: '33°5131″S 151°1251″E',
alt: 4,
ttl: "5m",
})
, LOC_BUILDER_DMS_STR({
label: "opera-house2",
str: '33°51\'31"S 151°12\'51"E',
alt: 4,
ttl: "5m",
})
, LOC_BUILDER_DMS_STR({
label: "opera-house3",
str: '33d51m31sS 151d12m51sE',
alt: 4,
ttl: "5m",
})
, LOC_BUILDER_DMS_STR({
label: "opera-house4",
str: '33d51m31s S 151d12m51s E',
alt: 4,
ttl: "5m",
})
, LOC_BUILDER_DMM_STR({
label: "fraser-island",
str: '25.24°S 153.15°E',
alt: 3,
})
, LOC_BUILDER_STR({
label: "tasmania",
str: '42°S 147°E',
alt: 3,
})
, LOC_BUILDER_STR({
label: "hawaii",
str: '21.5°N 158.0°W',
alt: 920,
})
, LOC_BUILDER_STR({
label: "old-faithful",
str: '44.46046°N 110.82815°W',
alt: 2240,
})
, LOC_BUILDER_STR({
label: "ribblehead-viaduct",
str: '54.210436°N 2.370231°W',
alt: 300,
})
, LOC_BUILDER_STR({
label: "guinness-brewery",
str: '53°2040″N 6°1720″W',
alt: 300,
})
);