mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 00:32:21 +00:00
Search reads degrees-minutes-seconds, UTM, MGRS and plus codes
This commit is contained in:
1 parent
b8a320edce
commit
4a61c755d9
7 files changed
+788
-15
No files matched your search
@@ -124,12 +124,9 @@ test('malformed and ambiguous coordinates are refused, never guessed', () => {
|
||||
'0, 181',
|
||||
'0, -180.5',
|
||||
'N 100, W 74',
|
||||
// Degrees/minutes/seconds is out of scope and must fall through, not
|
||||
// be read as a decimal pair.
|
||||
'40°26\'46"N, 79°58\'56"W',
|
||||
// Degrees/minutes/seconds without their symbols must fall through, not
|
||||
// be read as a decimal pair (marked ones are in gridReference.test.mjs).
|
||||
'40 26 46, 79 58 56',
|
||||
// A grid reference is out of scope too.
|
||||
'33UXP0500444998',
|
||||
]) {
|
||||
assert.equal(
|
||||
parseCoordinateQuery(query),
|
||||
|
||||
Reference in new issue
Block a user