Sample GeoJSON File — Download Toronto Test Geodata (Points, Polygon, Line)

GeoJSON (RFC 7946) · .geojson, .json · MIME type application/geo+json

1 file3 KB3 KBDirect linksNo ads, no sign-upFree for any useSHA-256 verified

Download a sample GeoJSON file — a FeatureCollection with Point features for Toronto landmarks, a Polygon for the downtown core and a LineString along the waterfront, each with properties. Coordinates are WGS 84 longitude/latitude as RFC 7946 requires, so it drops straight onto Leaflet, Mapbox, MapLibre, QGIS or geojson.io.

GeoJSON is the lingua franca of web mapping; the most common bugs are swapped latitude/longitude and unclosed polygon rings. This file is correct on both counts, which makes it a clean control for your import code.

Download sample GeoJSON files

FileDetailsSizeDownload
sample-toronto.geojson
8 features • points, polygon, line
3 KB
2,832 bytes
1 file · direct links · no sign-up · CORS enabled

Need one of every data format? Download the data sample pack (202 KB, one small file of every data format (17 files)).

Use these files from the command line or CI

Every URL is stable and CORS-open. Pin the SHA-256 in your test and you will know the moment a fixture changes.

# Download one file
curl -O https://pnb-website-bucket.s3.us-east-2.amazonaws.com/samples/data/geojson/sample-toronto.geojson

# Verify it (SHA-256 is listed for every file above)
shasum -a 256 sample-toronto.geojson

# Machine-readable index of every sample file
curl https://pnb-website-bucket.s3.us-east-2.amazonaws.com/samples/index.json | jq '.files[] | select(.format=="geojson")'

GeoJSON format at a glance

Full nameGeoJSON (RFC 7946)
Extensions.geojson, .json
MIME typeapplication/geo+json
StandardRFC 7946
CRSWGS 84 (EPSG:4326), [longitude, latitude]
GeometriesPoint ×6, Polygon ×1, LineString ×1

What people test with sample GeoJSON files

  • Map layer loading (Leaflet, Mapbox GL, MapLibre)
  • GIS import (QGIS, PostGIS)
  • Coordinate-order validation

Frequently asked questions

Why are the coordinates longitude first?

Because GeoJSON follows the x, y convention (longitude is x). Google Maps and most people write latitude first, which is the source of endless swapped-coordinate bugs. If Toronto shows up in the Indian Ocean, you swapped them.

Are these GeoJSON files safe to download?

Yes. Every file is generated by our own open script from scratch — nothing is scraped or user-uploaded — and contains no scripts, macros or executables. The SHA-256 of each file is published on this page so you can verify what you received.

Can I use the sample GeoJSON files commercially?

Yes. They are free for any purpose, including commercial products, test suites, demos and redistribution, with no attribution required. There is nothing to license and no one to ask.

Can I hotlink these files or use them in CI?

Yes. Every link is a stable direct URL over HTTPS with Access-Control-Allow-Origin: * and long cache headers, so curl, wget, fetch() and test runners can pull them directly. A JSON index of every file is linked from each page (see the command-line section).

Related sample files

Testing a file pipeline? We build them.

Uploads, conversions, previews, document processing and media workflows are the kind of production systems Pine & Birch designs and runs for clients — which is why we needed these files in the first place.

See how we can help
Free sample files by Pine & Birch — technology consulting, Toronto. Free for any use, no attribution required.