Position and coordinate order
Last checked ·
A pair of numbers can give latitude and longitude in degrees or easting and northing on a grid. This page compares which axis comes first in standards, SDKs and map links. The check date refers to the standards and SDK comparison.
What the comparison shows
latitude, longitude is the order people say and type. ISO 6709, the EPSG:4326 definition, the geo: URI and the links of Google Maps, Apple Maps and OpenStreetMap use it.
longitude, latitude is the order of x,y. GeoJSON, KML, OGC CRS84 and six of the eight SDKs below use it.
Both orders name the same point on the same WGS 84 datum. Only the written order differs. A format has to state its order, because the numbers alone often cannot tell a reader which one was meant.
The same two numbers, read both ways
Wildspitz is at latitude 47.080826° and longitude 8.579398°. Read in the wrong order, the pair points to the Horn of Africa, about 5,614 km away on a sphere of radius 6,371 km. Both readings are valid coordinates, so nothing fails.
| Written pair | Read as longitude, latitude | Read as latitude, longitude |
|---|---|---|
8.579398,47.080826 | Wildspitz | Horn of Africa, about 5,614 km away |
47.080826,8.579398 | Horn of Africa, about 5,614 km away | Wildspitz |
139.69,35.69 | Tokyo | Rejected. A latitude cannot be 139.69°. |
OpenStreetMap's search reads a bare pair as latitude, longitude. On 22 November 2026 it placed 8.579398,47.080826 in Buhoodle District, Somalia. Search result
A reader catches a swap only when the longitude lies beyond ±90°. In most of Europe and Africa both numbers fit either slot, so a swapped pair opens the wrong place without an error.
Who defines which order
| Standard | Published | Order | What it says | Source |
|---|---|---|---|---|
| ISO 6709 | 1983, 2008, 2022 | latitude, longitude | “Latitude comes before longitude.” Height or depth is an optional third value. | ISO 6709 summary |
| EPSG:4326, WGS 84 | — | latitude, longitude | The registry entry lists “Axes: latitude, longitude. Orientations: north, east.” | EPSG:4326 |
RFC 5870, geo: URI | June 2010 | latitude, longitude | geo:48.2010,16.3695,183. WGS 84 by default. An optional third value gives altitude. | RFC 5870 |
| OGC CRS84 | — | longitude, latitude | The same WGS 84 datum with the axes Lon east, then Lat north. | CRS84 definition |
| RFC 7946, GeoJSON | August 2016 | longitude, latitude | “The first two elements are longitude and latitude, or easting and northing, precisely in that order.” Equivalent to CRS84. | RFC 7946 |
| OGC KML | — | longitude, latitude | “Longitude, latitude, and altitude (in that order).” Altitude is in metres above sea level. | KML reference |
| OGC API Features | — | longitude, latitude | Geometries use CRS84, “WGS 84 longitude/latitude”, unless the client asks for another system. | OGC API Features, Part 1 |
| GPX 1.1 | — | named fields | Each point carries lat and lon attributes. The names carry the meaning. | GPX 1.1 schema |
EPSG:4326 and CRS84 describe the same coordinates in opposite axis order. A format that says only “WGS 84” has not said which order it uses.
What the SDKs take
| SDK | Order | How it is written | Source |
|---|---|---|---|
| ArcGIS Maps SDK for JavaScript | longitude, latitude | A point has named longitude and latitude. Longitude equals x and latitude equals y. | Point |
| MapLibre GL JS | longitude, latitude | new LngLat(lng, lat), chosen “to match the GeoJSON specification”. Its URL hash writes zoom/lat/lon. | LngLat |
| Mapbox GL JS | longitude, latitude | LngLat, “as opposed to latitude, longitude”, to match GeoJSON and CRS84. | Geography |
| OpenLayers | longitude, latitude | fromLonLat([lon, lat]), “an array with longitude as 1st and latitude as 2nd element”. | ol/proj |
| CesiumJS | longitude, latitude | Cartesian3.fromDegrees(longitude, latitude, height). | Cartesian3 |
| deck.gl | longitude, latitude | Positions are [longitude, latitude, altitude]. | Coordinate systems |
| Leaflet | latitude, longitude | new LatLng(50.5, 30.5). Arrays use the same order. A coordsToLatLng function converts GeoJSON. | LatLng |
| Google Maps JavaScript API | latitude, longitude | new LatLng(lat, lng). “The latitude coordinate is always written first, followed by the longitude.” | Coordinates |
One SDK can use both orders. MapLibre takes longitude first in its API and writes latitude first in its URL hash. Leaflet takes latitude first and reads GeoJSON with longitude first.
What shared links write
These orders come from the link survey and the outdoor app inventory in this repository. Its group of shareable map, camera and panorama links lists a 2D schema for 19 apps. External link survey · Outdoor app inventory
| Order | General map viewers | Outdoor apps, 2D | Outdoor apps, 3D or panorama |
|---|---|---|---|
| latitude, longitude | Google Maps center=lat,lon, Apple Maps center=lat,lon, OpenStreetMap #map=zoom/lat/lon, HERE WeGo map=lat,lon,zoom, Japan GSI Maps #zoom/lat/lon | CalTopo, Cartes IGN, Komoot, Locus Map, OpenSkiMap, OpenSnowMap, OsmAnd, Skiguide, Strava, thermal.kk7 | OpenSkiMap, thermal.kk7, PeakFinder, PeakVisor |
| longitude, latitude | ArcGIS Map Viewer center=lon,lat, ArcGIS Scene Viewer cam:lon,lat,z | Alpenvereinaktiv, Gaia GPS, Mapy.com, Outdooractive, PowderGuide | map.geo.admin.ch camera=lon,lat,height, Alpenvereinaktiv, Mapy.com, Outdooractive, PowderGuide |
| projected x,y or bounds | NASA Worldview v=minX,minY,maxX,maxY | map.geo.admin.ch and SchweizMobil use easting, northing. Camptocamp and WandelDerZeit use west, south, east, north. | BEYOND uses easting, northing. |
Links that people copy from a browser mostly put latitude first. Projected coordinates and bounds put the east–west value first. Some of these links name each value, such as lat=…&lng=…. A named value keeps its meaning in any order.
How a reader can tell the order
| Signal | Example | How reliable it is |
|---|---|---|
| Named values | lat=47.08&lon=8.58, GPX attributes | Reliable. The link grows by a name for each value. |
| A stated order for the format | GeoJSON, KML, the geo: URI | Reliable for readers who know the format. A person pasting the pair elsewhere does not carry the rule along. |
| A named reference system | CRS84 or EPSG:4326 | Reliable when software honours the axis order. The two names differ only in that order. |
| The value range | A latitude stays within ±90° | Catches a swap only where the longitude lies beyond ±90°. It cannot help in Europe or Africa. |
| Hemisphere letters | 47.08N 8.58E | Reliable for people. Few link formats and SDKs read them. |
What this means for shared view links
An untagged map: or cam: uses WGS84 latitude, longitude. That order matches Google Maps, Apple Maps and OpenStreetMap links, ISO 6709 and most of the outdoor links above. Adapters swap an untagged pair when the destination expects longitude first. The Wildspitz example above shows the consequence of passing the pair straight into a longitude-first array.
A tagged pair uses the axis order and units of its declared CRS. Spatial reference research · Horizontal position specification
