Fix olc-decode and geopoint latitude and longitude order in the geospatial plugin (#8437)

* Reverse latitude and longitude in olc-decode tests to match proper geojson output format

* Reverse latitude and longitude in olc-decode to match proper geojson output format

* Reverse latitude and longitude in geopoint expected results to match proper geojson format

* Reverse latitude and longitude in geolookup expected results to match proper geojson format

* Corrected the Oxford to New York distances

* Oxford is actually 12 miles closer to New York than Winchester

Used calculator at https://www.nhc.noaa.gov/gccalc.shtml to check

Reversed latitude and longitude to correct the geojson

* Reversed the latitude and longitude turf.point arguments in the geopoint function

* Swapped latitude and longitude in geopoint function calls
This commit is contained in:
btheado
2024-07-28 08:44:09 -04:00
committed by GitHub
parent 82bf4480de
commit bb9c64b38e
10 changed files with 24 additions and 24 deletions

View File

@@ -22,14 +22,14 @@ title: Output
"id": "Oxford",
"geometry": {
"type": "Point",
"coordinates": [51.751944, -1.257778]
"coordinates": [-1.257778, 51.751944]
}
},{
"type": "Feature",
"id": "Winchester",
"geometry": {
"type": "Point",
"coordinates": [51.0632, -1.308]
"coordinates": [-1.308, 51.0632]
}
}
]
@@ -42,4 +42,4 @@ title: Output
+
title: ExpectedResult
<p>Winchester</p>
<p>Oxford</p>