Skip to content

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.

8 standards 3 latitude first, 4 longitude first, 1 with named fields
8 SDKs 6 longitude first, 2 latitude first
19 outdoor 2D schemas 10 latitude first, 5 longitude first, 4 projected or bounds in the shareable-links table

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.

A grid with longitude from minus 180 to 180 degrees across and latitude from minus 90 to 90 degrees up. Wildspitz sits at latitude 47.08 and longitude 8.58. The swapped pair sits at latitude 8.58 and longitude 47.08, about 5,614 kilometres away on a sphere.
Longitude runs east like x. Latitude runs north like y. The grid is schematic and shows no coastlines. Excalidraw source
What each written pair opens
Written pairRead as longitude, latitudeRead as latitude, longitude
8.579398,47.080826WildspitzHorn of Africa, about 5,614 km away
47.080826,8.579398Horn of Africa, about 5,614 km awayWildspitz
139.69,35.69TokyoRejected. 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

Standards and registries
StandardPublishedOrderWhat it saysSource
ISO 67091983, 2008, 2022latitude, longitude“Latitude comes before longitude.” Height or depth is an optional third value.ISO 6709 summary
EPSG:4326, WGS 84—latitude, longitudeThe registry entry lists “Axes: latitude, longitude. Orientations: north, east.”EPSG:4326
RFC 5870, geo: URIJune 2010latitude, longitudegeo:48.2010,16.3695,183. WGS 84 by default. An optional third value gives altitude.RFC 5870
OGC CRS84—longitude, latitudeThe same WGS 84 datum with the axes Lon east, then Lat north.CRS84 definition
RFC 7946, GeoJSONAugust 2016longitude, 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, latitudeGeometries use CRS84, “WGS 84 longitude/latitude”, unless the client asks for another system.OGC API Features, Part 1
GPX 1.1—named fieldsEach 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

Coordinate order in map SDKs
SDKOrderHow it is writtenSource
ArcGIS Maps SDK for JavaScriptlongitude, latitudeA point has named longitude and latitude. Longitude equals x and latitude equals y.Point
MapLibre GL JSlongitude, latitudenew LngLat(lng, lat), chosen “to match the GeoJSON specification”. Its URL hash writes zoom/lat/lon.LngLat
Mapbox GL JSlongitude, latitudeLngLat, “as opposed to latitude, longitude”, to match GeoJSON and CRS84.Geography
OpenLayerslongitude, latitudefromLonLat([lon, lat]), “an array with longitude as 1st and latitude as 2nd element”.ol/proj
CesiumJSlongitude, latitudeCartesian3.fromDegrees(longitude, latitude, height).Cartesian3
deck.gllongitude, latitudePositions are [longitude, latitude, altitude].Coordinate systems
Leafletlatitude, longitudenew LatLng(50.5, 30.5). Arrays use the same order. A coordsToLatLng function converts GeoJSON.LatLng
Google Maps JavaScript APIlatitude, longitudenew 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.

How a reader can tell the order

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