Skip to main content

Readable feature format

GeoJSON

GeoJSON represents geographic features as JSON objects with explicit geometry and application properties. It is easy to inspect, exchange, and connect to web mapping code.

loaders.gl support​

GeoJSON format map example

Structured data boundaries

Keep the source shape. Choose the application shape.

JSON, delimited text, BSON, and XML describe data differently. loaders.gl keeps those input boundaries explicit while letting applications choose documents, tables, features, or trees for the next stage.

Common API boundary

documentbatchstream

load · parse · write

Application results

Documentnested objects and arrays
Tablerows, columns, or Arrow batches
Featuresgeometry plus properties
Treeformat-specific document structure

A readable interchange format can stay readable at the edge, or become a typed table when that is what the application needs.

The object model

Features first. Geometry stays explicit.

A GeoJSON document can describe one geometry, one feature, or a collection of features. loaders.gl preserves that shape while making large inputs available through batches and table views.

Geometry

Point, line, polygon, and collections

Feature

Geometry plus an optional identifier and properties

Collection

A list of features under one document

Streaming

NDJSON for one feature per line

GeoJSON is a format for encoding a variety of geographic data structures together with properties.

Detailed guide

GeoJSON objects and alternatives

The sections below describe geometry shapes, feature collections, loader behavior, and related geographic formats.

Geometries​

Since GeoJSON geometries can be independently useful they are described on a separate page.

Alternatives​

FormatSupportDescription
TopoJSON✕A more compact version that encodes topology.