GIS coordinate order is always a source of confusion when working with different software tools. Is it Latitude (lat) followed by Longitude (lon), or the other way around? I’ve made mistakes with this before. So here’s my way of recording it to get it right next time.
The examples below use Bengaluru’s coordinates: Latitude = 12.971599, Longitude = 77.594566.
System | Order | Comments |
---|---|---|
WKT | lon, lat | |
Google Maps | lat, lon | |
GeoJSON | lon, lat | |
Leaflet | lat, lon | |
Redis | lon, lat | |
Clickhouse | lon, lat | |
Elastic Search | lon, lat | |
CAP 1.2 | lat, lon | <circle>12.97159, 77.594566, 0.1</circle> |
GeoRSS | lat, lon | <georss:point>12.97159, 77.594566</georss:point> |
PostGIS | lon, lat | ST_Point(77.594566, 12.971599) |
MongoDB | lon, lat | Same as GeoJSON |