GeoJSON on the web: structure and limitations

Introduction
GeoJSON is a format for writing geographic features as JSON text. A feature's shape (geometry) and its attributes are stored in one file. The current standard is RFC 7946, published in 2016.
GeoJSON is the most widely used "language" of web maps: Leaflet, OpenLayers and MapLibre read it without extra libraries, the browser parses JSON itself, and the file can be opened in an ordinary text editor. But its simplicity comes with two kinds of mistakes: a badly built file silently lands in the wrong place on the map, and a file that is too large slows the page down.
File structure
GeoJSON has a three-level structure:
- FeatureCollection: a set of features, the top level of the file;
- Feature: a single feature, such as one district or one bus stop;
- geometry and properties: the feature's shape and its attributes.
A single point in Tashkent is written like this:
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": { "type": "Point", "coordinates": [69.2794, 41.3112] },
"properties": { "nomi": "Mustaqillik maydoni", "turi": "maydon" }
}
]
}
Any JSON value can go into properties: text, numbers, lists. On a web map these attributes are used for popups, filters and styling.

Geometry types
RFC 7946 defines seven geometry types:
| Type | What it represents | Example |
|---|---|---|
| Point | a single point | bus stop, school |
| LineString | a line | street, canal |
| Polygon | a closed area, possibly with holes | district, lake |
| MultiPoint, MultiLineString, MultiPolygon | several parts of one feature | an area made of islands |
| GeometryCollection | a mix of different geometry types | rarely used |
A polygon ring must be closed: the first and last coordinates are the same, so even the simplest triangle has 4 points. The standard requires the outer ring to be counterclockwise and inner holes clockwise, but for compatibility with older files, parsers should not reject a polygon that breaks this order.

Coordinate order and system
In GeoJSON the coordinate order is always longitude first, then latitude: [69.2794, 41.3112]. Many online maps and GPS apps show them as "latitude, longitude". If the values are swapped, no error appears; the point in Tashkent simply ends up beyond the Arctic Circle.
RFC 7946 has a single coordinate reference system (CRS): WGS 84 in degrees. The crs member of the old 2008 specification was removed. So data in UTM or another metric system is converted to WGS 84 before being written to GeoJSON.
Precision and file size
Many programs write coordinates with up to 15 decimal places. That precision is finer than a millimetre and adds nothing but size. At Tashkent's latitude, the number of decimal places gives the following precision:
| Decimal places | Latitude | Longitude |
|---|---|---|
| 4 | ≈ 11 m | ≈ 8 m |
| 5 | ≈ 1.1 m | ≈ 0.8 m |
| 6 | ≈ 11 cm | ≈ 8 cm |
RFC 7946 also notes that 6 decimal places is about 10 cm, which is finer than ordinary GPS. For a line of 10,000 points, rounding coordinates to 6 decimals shrinks the file from 381 KB to 218 KB. If the server enables gzip compression, only about 70 KB travels over the network.

Limitations at large sizes
GeoJSON's main limitation is that the map shows nothing until the whole file has loaded, and then every feature lands in the browser's memory at once. With a file of several megabytes the page visibly waits, and with Leaflet's plain SVG rendering, thousands of complex polygons make panning the map sluggish.
In that case the usual steps are:
- round coordinates to 5–6 decimals;
- simplify geometry, removing extra vertices for small scales;
- drop unneeded attributes;
- convert very large data into vector tiles so the map loads only the visible part.
Conclusion
GeoJSON is the simplest way to put small and medium-sized vector data on the web. A correct file rests on three rules: coordinates in WGS 84 in "longitude, latitude" order, closed polygon rings, and precision suited to the task.
As the size grows, GeoJSON's strength, simple all-at-once loading, turns into a weakness. Seeing that limit in advance, knowing when to round, simplify or switch to tiles, keeps a web map fast.

