Learn
GeoJSON guides
Practical references for developers working with GeoJSON — format spec, geometry types, and integration how-tos.
Foundations
The core references that cover GeoJSON's format, geometry types, and data model. Start here.
- What is GeoJSON?
GeoJSON is an open standard (RFC 7946) for encoding geographic features as JSON. Learn the format, geometry types, and how it's used.
- GeoJSON geometry types
GeoJSON defines seven geometry types. This guide covers all of them — with code examples, use cases, and how to choose between them.
- GeoJSON polygon
A GeoJSON Polygon is a closed shape defined by one or more rings. Learn the coordinate structure, how to add holes, and how to avoid the most common mistakes.
- GeoJSON examples
Ready-to-use GeoJSON examples for Point, LineString, Polygon, MultiPolygon, and FeatureCollection — plus where to download free GeoJSON datasets.
Integrations & workflows
Practical how-to guides for the most common GeoJSON tools — conversion, databases, mapping libraries, and analytics platforms.
- Shapefile to GeoJSON: three ways to convert
How to convert a Shapefile to GeoJSON using QGIS, ogr2ogr, or Python — with notes on what gets preserved and the reproject trap.
- GeoJSON MultiPolygon
When to use GeoJSON MultiPolygon, how the coordinate structure works, and how to build one from separate Polygon features.
- GeoJSON with Python
How to read, write, filter, and convert GeoJSON in Python — using the json stdlib, the geojson library, geopandas, Shapely, and Folium.
- GeoJSON with Leaflet.js
How to load, style, and interact with GeoJSON in Leaflet — including L.geoJSON(), per-feature styling, popups, and react-leaflet.
- GeoJSON with Mapbox GL JS
How to add a GeoJSON source to Mapbox GL JS, render it as fill, line, or circle layers, update it at runtime, and filter by property.
- GeoJSON with React
How to load and render GeoJSON in React — with react-leaflet, react-map-gl, state management for selected features, and the useMemo trap.
- GeoJSON with D3.js
How to load GeoJSON in D3, render it with d3.geoPath(), apply a map projection, and build a choropleth from feature properties.
- GeoJSON with PostGIS and PostgreSQL
How to store, query, and export GeoJSON in PostgreSQL using PostGIS — ST_AsGeoJSON, ST_GeomFromGeoJSON, and building a FeatureCollection in SQL.
- GeoJSON with Elasticsearch
How to index and query GeoJSON features in Elasticsearch using the geo_shape field type — with intersect, within, and bounding box queries.
- World countries GeoJSON: where to get it and how to use it
The best sources for world country GeoJSON data, how resolution levels affect file size, and how to filter and simplify for performance.
- GeoJSON in Power BI
How to use GeoJSON with Power BI's Shape Map visual — preparing your file, matching the name field to your data, and common formatting issues.