A GeoJSON text is a JSON text holding one
GeoJSON object. This page follows
RFC 7946 (2016), read
2026-11-12. The media type is application/geo+json.
Object types
Every GeoJSON object has a type member, one of these nine
case-sensitive strings:
type | Required members | Meaning |
|---|---|---|
Point | coordinates: a position | One point. |
MultiPoint | coordinates: an array of positions | Several points. |
LineString | coordinates: an array of 2 or more positions | A line through the positions. |
MultiLineString | coordinates: an array of LineString coordinate arrays | Several lines. |
Polygon | coordinates: an array of linear rings | The first ring is the outside; any others are holes. |
MultiPolygon | coordinates: an array of Polygon coordinate arrays | Several polygons. |
GeometryCollection | geometries: an array of geometry objects | Mixed geometries. Nesting should be avoided, and so should collections of one part or one type where a multi-type would do. |
Feature | geometry (a geometry or null), properties (an object or null) | A thing with a shape and attributes. |
FeatureCollection | features: an array of Feature objects | A set of features. |
Processors may treat a geometry with an empty coordinates array as a
null object. The geometries array of a GeometryCollection and the features array of
a FeatureCollection may be empty; implementations should not apply extra semantics to geometries.
The order of members in an object is irrelevant. The word “Collection” in the type names has no special
significance, and the geometries and features arrays are ordered arrays, not sets.
The set of nine types is fixed: implementations must not extend it, and must not change the semantics of
the members or types the RFC defines (RFC 7946 sections 1.2, 1.4 and 7).
Positions
- A position is an array of two or more numbers: longitude, latitude (easting, northing under another coordinate reference system), and optionally altitude in metres above or below the WGS 84 ellipsoid. Implementations should not extend positions beyond three elements. A position without an elevation should be read, by applications that depend on height, as at local ground or sea level (section 4).
- A line between two positions is a straight Cartesian line in the coordinate reference system, not a geodesic (section 3.1.1; Appendix B.1 lists this as a normative change from 2008).
- The coordinate reference system is always WGS 84 (OGC CRS84) in decimal degrees.
The 2008 specification’s
crsmember is no longer used; another system may be used only by prior arrangement between the parties. - Precision: the RFC notes that six decimal places amount to about 10 centimetres. The number of digits in a coordinate must not be read as a level of uncertainty (section 3.1.10, as in RFC 5870); GeoJSON has no concept of uncertainty.
- A linear ring is a closed LineString of four or more positions; the first and last positions must hold identical values, and should also be written identically.
- Rings follow the right-hand rule: outer rings counter-clockwise, holes clockwise. Readers should not reject polygons that do not follow it, because the 2008 specification did not require it.
- Lines and rings that cross the antimeridian (180° longitude) should be cut in two there, so that no line wraps the long way round the Earth.
Other members
| Member | On | Meaning |
|---|---|---|
bbox | Any object | Bounding box: all minimums for each axis, then all maximums, such as [west, south, east, north] or with altitudes. Across the antimeridian, west is greater than east. |
id | Feature | An identifier, a string or a number. |
| Foreign members | Any object | Members the RFC does not define, such as title. Allowed, but their meaning is up to the reader; a foreign member named coordinates or geometry does not make an object a geometry or feature. |
The bbox array has length 2 × n, where n is the number of dimensions in the contained geometries: all axes of the most south-westerly point, then all axes of the more north-easterly point, in the axis order of the geometries. Its edges follow lines of constant longitude, latitude and elevation. The latitude of the north-east corner is always greater than that of the south-west corner. (RFC 7946 section 5.)
Bounding boxes at the poles
RFC 7946 section 5.3 gives these forms:
| Box | bbox |
|---|---|
| Contains the North Pole (cap bounded by circle of latitude minlat) | [-180.0, minlat, 180.0, 90.0] |
| Contains the South Pole | [-180.0, -90.0, 180.0, maxlat] |
| Just touches the North Pole (a slice of a cap) | [westlon, minlat, eastlon, 90.0] |
| Just touches the South Pole | [westlon, -90.0, eastlon, maxlat] |
Implementers must not use latitudes above 90 or below -90 to imply an extent that is not a spherical cap.
The defining members must not appear on the wrong objects: Features and
FeatureCollections must not have coordinates or
geometries; FeatureCollections and geometries must not have
geometry or properties; Features and geometries must not
have features. All descendants of a foreign member’s value are themselves foreign members
(section 6.1).
Changes from the 2008 specification
Appendix B of RFC 7946 lists the changes from the 2008 GeoJSON specification,
among them that the crs member is no longer used. Appendix C notes that
streams of GeoJSON texts can use JSON text sequences (RFC 7464), which are outside
the RFC’s scope.
Versioning, geo URIs and media type
- Versioning (section 8): the format can be extended but has no explicit version. A specification that alters the semantics of GeoJSON members or otherwise modifies the format defines an entirely new format that must not be identified as GeoJSON.
- geo URIs (section 9): a
geo:lat,lonURI whose uncertainty parameter is absent or zero maps to{"type": "Point", "coordinates": [lon, lat]}, andgeo:lat,lon,altto a Point with three coordinates. A Point always converts to a geo URI with no uncertainty parameter. Imprecise or uncertain geo URIs cannot be mapped. - Media type (section 12):
application/geo+json, no magic number, file extensions.jsonand.geojson, Windows clipboard nameGeoJSON, Macintosh type identifierpublic.geojson(conforming topublic.json). The entryapplication/vnd.geo+jsonis to be marked obsolete.
Example
{
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"id": 1,
"geometry": { "type": "Point", "coordinates": [-0.1276, 51.5072] },
"properties": { "name": "London" }
}]
}