1. The Fundamental Difference: Latitude vs. Longitude
To understand which coordinate comes first, you must know what each number represents on planet Earth:
- Latitude (Parallel lines / North-South): Measures how far North or South a point is from the Equator (0°). It ranges from -90° (South Pole) to +90° (North Pole). Because latitude cannot exceed 90 degrees, any number larger than 90 is never latitude.
- Longitude (Meridians / East-West): Measures how far East or West a point is from the Prime Meridian in Greenwich, England (0°). It ranges from -180° (West) to +180° (East).
2. Three Easy Tricks to Never Forget the Order
If you constantly hesitate when entering coordinates into GPS or Google Maps, use these proven memory aids:
- Alphabetical Order: Latitude comes before Longitude in the English dictionary (La > Lo).
- "Lat is Flat": Latitude lines lie horizontally like ladder rungs. You climb up and down the ladder (North/South) first before stepping left or right (East/West).
- North/South First: In everyday speech we say "North-South, East-West". Latitude is North-South; Longitude is East-West.
3. The Great Cartography vs. GIS / Math Conflict
The number one reason developers and GIS analysts get confused is that cartography and mathematics disagree on coordinate order:
| System / Format | Order | Example (New York City) | Standard Basis |
|---|---|---|---|
| Google Maps / Apple Maps | Latitude, Longitude | 40.7128, -74.0060 |
ISO 6709 Consumer Standard |
| ISO 6709 (International Standard) | Latitude, Longitude | +40.7128-074.0060/ |
International Geodetic Standard |
| GPS Handhelds (Garmin, Trimble) | Latitude, Longitude | N 40°42'46", W 74°00'21" |
Navigational Navigation Standard |
| GeoJSON (RFC 7946) | Longitude, Latitude | [-74.0060, 40.7128] |
Cartesian Math Axis [X, Y] |
| PostGIS / Spatial SQL | Longitude, Latitude | ST_MakePoint(-74.0060, 40.7128) |
OGC Simple Features (X=Lon, Y=Lat) |
| KML (Google Earth) | Longitude, Latitude | -74.0060,40.7128,0 |
OGC KML Standard (X, Y, Altitude) |
| QGIS / ArcGIS Displays | Latitude, Longitude (or X, Y) | Configurable by CRS projection | EPSG:4326 vs Projected CRS |
4. What Happens When You Invert Coordinates?
Reversing latitude and longitude is known as the coordinate transposition error. In software development, it is one of the most common causes of bugs in mapping applications:
- Out of Bounds Error: If your longitude was greater than 90° (such as in Japan, China, India, Australia, or Russia), passing it as latitude will throw a coordinate range error because latitude cannot exceed 90°.
- The "Null Island" or Ocean Drop: If both coordinates are under 90° (such as Europe, Africa, or the eastern United States), swapped coordinates will place your pin in the middle of an ocean or on a completely different continent. For example, Paris, France (48.85°N, 2.29°E) swapped to (2.29°N, 48.85°E) moves from Europe to Somalia in East Africa!
5. Frequently Asked Questions (FAQ)
Which comes first in Google Maps?
In Google Maps, Latitude always comes first, followed by a comma and Longitude. For example, searching 35.6812, 139.7671 correctly opens Tokyo, Japan.
Why does GeoJSON use Longitude first?
GeoJSON follows mathematical Cartesian geometry where horizontal axis is X and vertical axis is Y. Since Longitude runs East-West (horizontal), it is treated as X. Latitude runs North-South (vertical), so it is treated as Y. Therefore, GeoJSON specifies [X, Y] which equals [Longitude, Latitude].
Is latitude positive or negative in the Southern Hemisphere?
In decimal degrees, North latitude is positive (+) and South latitude is negative (-). For longitude, East is positive (+) and West is negative (-). For example, Sydney, Australia is at latitude -33.86° (33.86° South) and longitude +151.20° (151.20° East).