What is the correct order [longitude, latitude] or [latitude, longitude] of waypoints property?

What is the order there, is [longitude, latitude] or [latitude, longitude] ? this info in not clear in the docs.

GeoJSON https://geojson.io/ expects coordinates in the order [longitude, latitude].

if I use [latitude, longitude], format like the waypoints, I ended in Antantica.

{
“type”: “Feature”,
“properties”: {},
“geometry”: {
“type”: “LineString”,
“coordinates”: [
[40, -82.89],
[39.92, -82.85],
[39.86, -82.82],
[39.83, -82.81],
[39.79, -82.78],
[39.77, -82.78],
[39.61, -82.76],
[39.55, -82.75],
[39.28, -82.73],
[39.15, -82.71],
[39.09, -82.71],
[38.89, -82.68],
[38.83, -82.68],
[38.82, -82.68],
[38.8, -82.68],
[38.69, -82.69],
[38.65, -82.7],
[38.57, -82.7],
[38.32, -82.73],
[38.22, -82.74],
[38.03, -82.76],
[37.83, -82.78],
[36.92, -82.88],
[36.81, -82.9],
[36.71, -82.91],
[36.68, -82.92],
[36.61, -82.93],
[36.42, -82.96],
[36.28, -82.98],
[35.85, -83.05],
[35.78, -83.06],
[35.71, -83.1],
[35.44, -83.26],
[35.41, -83.27],
[35.07, -83.46],
[34.78, -83.63],
[34.65, -83.71],
[34.63, -83.71],
[34.58, -83.75],
[34.48, -83.8],
[34.33, -83.89],
[34.19, -83.97],
[34.18, -83.98],
[34, -84.1],
[33.92, -84.08],
[33.85, -84.17],
[33.89, -83.97],
[33.73, -84.31],
[33.67, -84.38],
[33.64, -84.43]
]
}
}

I use the invesed format of the array [longitude, latitude] is look correct, I ended in usa.

{
“type”: “Feature”,
“properties”: {},
“geometry”: {
“type”: “LineString”,
“coordinates”: [
[-82.89, 40],
[-82.85, 39.92],
[-82.82, 39.86],
[-82.81, 39.83],
[-82.78, 39.79],
[-82.78, 39.77],
[-82.76, 39.61],
[-82.75, 39.55],
[-82.73, 39.28],
[-82.71, 39.15],
[-82.71, 39.09],
[-82.68, 38.89],
[-82.68, 38.83],
[-82.68, 38.82],
[-82.68, 38.8],
[-82.69, 38.69],
[-82.7, 38.65],
[-82.7, 38.57],
[-82.73, 38.32],
[-82.74, 38.22],
[-82.76, 38.03],
[-82.78, 37.83],
[-82.88, 36.92],
[-82.9, 36.81],
[-82.91, 36.71],
[-82.92, 36.68],
[-82.93, 36.61],
[-82.96, 36.42],
[-82.98, 36.28],
[-83.05, 35.85],
[-83.06, 35.78],
[-83.1, 35.71],
[-83.26, 35.44],
[-83.27, 35.41],
[-83.46, 35.07],
[-83.63, 34.78],
[-83.71, 34.65],
[-83.71, 34.63],
[-83.75, 34.58],
[-83.8, 34.48],
[-83.89, 34.33],
[-83.97, 34.19],
[-83.98, 34.18],
[-84.1, 34],
[-84.08, 33.92],
[-84.17, 33.85],
[-83.97, 33.89],
[-84.31, 33.73],
[-84.38, 33.67],
[-84.43, 33.64]
]
}
}

It is latitude, longitude.
40N,82.89W is Columbus International Airport.

https://geojson.io/#map=13/40/-82.89

(The 13 is the zoom level.)

However, the GeoJSON format uses longitude, latitude.

1 Like