GeoJSON

Overview

GeoJSON is a lightweight, text-based format for encoding geographic data structures using JSON, commonly used for sharing and visualizing spatial data in web applications and GIS. GeoJSON supports points, lines, polygons, and collections of these geometry types along with non-spatial properties.

Key Concepts

Feature is an object with geometry and properties. FeatureCollection is an array of Features. Geometry defines the spatial shape (Point, LineString, Polygon, etc.). Properties contain non-spatial attributes as key-value pairs. Coordinates use longitude, latitude order (x, y).

Geometry Types

TypeDescription
PointSingle coordinate
MultiPointArray of points
LineStringConnected sequence of points
MultiLineStringArray of lines
PolygonClosed ring(s)
MultiPolygonArray of polygons
GeometryCollectionMixed geometry types

Example

{
  "type": "Feature",
  "geometry": {
    "type": "Point",
    "coordinates": [-74.006, 40.7128]
  },
  "properties": {
    "name": "New York City"
  }
}

Appendix

Created: 2025-12-13 | Modified: 2025-12-13

See Also