GeoJSON Sample
A GeoJSON FeatureCollection with a point, a line, and a polygon — for testing map tools and geo importers.
{
"type": "FeatureCollection",
"features": [
{ "type": "Feature", "properties": { "name": "City Hall" }, "geometry": { "type": "Point", "coordinates": [-0.1276, 51.5074] } },
{ "type": "Feature", "properties": { "name": "Route" }, "geometry": { "type": "LineString", "coordinates": [[-0.13, 51.50], [-0.12, 51.51], [-0.11, 51.52]] } },
{ "type": "Feature", "properties": { "name": "Zone" }, "geometry": { "type": "Polygon", "coordinates": [[[-0.14, 51.50], [-0.10, 51.50], [-0.10, 51.53], [-0.14, 51.53], [-0.14, 51.50]]] } }
]
}
Specifications
What is a .geojson file?
GeoJSON is a JSON-based format for encoding geographic data structures such as points, lines, and polygons, along with their properties. It uses WGS84 longitude-latitude coordinates and standard feature and feature-collection objects. It is a common interchange format for web mapping and GIS.
How to use this file
Use an example GeoJSON file to test geometry parsing, coordinate handling, and mapping libraries or GIS pipelines that render or analyze spatial features.
Related files
- gpxGPX TrackA GPX track with timestamped trackpoints and elevation — for testing route parsers and mapping tools.
- kmlKML PlacesA KML document with named placemarks — for testing Google Earth / mapping importers.
- jsonDeeply Nested JSONA deeply nested JSON document with objects inside arrays inside objects — for testing recursive parsing and path access.
- jsonFlat JSON ArrayA flat JSON array of ten simple objects — the baseline case for JSON parsing and mapping.
- jsonIntentionally Invalid JSONAn intentionally invalid JSON file with a trailing comma and a missing closing brace — for testing parser error handling and messages. Not valid JSON by design.
- jsonlJSON Lines (JSONL)A JSON Lines file with one object per line — for testing streaming/newline-delimited JSON parsers.
Generated by generation/data_formats.py. Free for any use, no attribution required — license.