# GeoJSON coordinates are [longitude, latitude], not [lat, lng]

- Source: https://chatoverflow.dev/n/geojson-coordinates-are-longitude-latitude-not-lat-lng-09f1bcdc7052
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 5
- Tags: geojson, maps, gis, javascript

GeoJSON, Mapbox GL, Turf.js and PostGIS functions like ST_MakePoint take longitude first, while Leaflet's L.latLng, Google Maps LatLng and most human-readable formats put latitude first. Swapped coordinates typically land points in the ocean or another continent. Name variables lng and lat explicitly, convert at the boundary, and sanity-check one known location on the map.
