TopoJSON 📊

TopoJSON (Topology-Aware JSON)

Price before payment
.topojson · application/json

TopoJSON ni kiendelezi cha GeoJSON kinachofahamu topolojia. Hutumia usimbaji wa upinde-shirikiwa (mipaka kati ya poligoni huhifadhiwa mara moja tu) na uwekaji wa viratibu katika namba kamili — faili itokeayo ni ndogo kwa 60-80% kuliko GeoJSON sawa. Ingizo la kawaida kwa D3.js, Mapshaper, na Observable; linafaa kwa ramani shirikishi za korapleti na atlasi za wavuti.

OpenStreetMap data as of 26 October 2026 · 28 days ago

Safirisha TopoJSON sasa ✨ Open Beta — bila malipo, bila vikomo

Vipengele Muhimu

✓Usimbaji wa upinde-shirikiwa (ndogo kwa 60-80% kuliko GeoJSON)
✓Uwekaji wa viratibu katika namba kamili
✓Urahisishaji unaohifadhi topolojia
✓Sifa za vipengele huhifadhiwa

Kuhusu Muundo wa TopoJSON

TopoJSON was invented by Mike Bostock, the author of D3.js, to solve a simple problem: in GeoJSON neighboring polygons store their shared border twice. TopoJSON moves all the lines into a common array of arcs that the objects then refer to. On top of that, coordinates are rounded to an integer grid and written as increments — the file gets sharply lighter.

The format is taken for web graphics and analytics: choropleths in D3, interactive atlases, boundary maps in Observable, lightweight layers for offline applications. The second motive is simplification: during generalization the shared borders move together, and no gaps appear between neighboring districts.

The output is a single document: every layer becomes a separate object inside it — roads, buildings, water and so on — and object attributes are preserved. Coordinates are in WGS84, up to 100,000 objects per layer. The topology is built by our own code, with no external dependencies.

The price of compactness is the rounding of coordinates. The grid step depends on the size of the area: for a district it is on the order of a meter, for a country hundreds of meters. For a web map that is invisible; for precise measurements take GeoJSON or GeoPackage.

Programu Gani Hufungua Faili za TopoJSON

Programu na programu-tumizi zifuatazo zinaweza kufungua, kuhariri, na kufanya kazi na faili za TopoJSON (Topology-Aware JSON) (.topojson) zilizosafirishwa kutoka OSM2CDR:

💻D3.js 💻Mapshaper 💻topojson-server 💻topojson-client 💻Observable 💻ndjson-cli

Format specifications

Nani Hutumia Ramani za TopoJSON

🏗
Ramani shirikishi za korapleti katika D3.js
A choropleth in D3.js draws fast: shared district borders are stored and rendered once.
💻
Atlasi za wavuti na machapisho yanayoendeshwa na ramani
A web atlas and cartographic publications where page weight matters.
📊
Ramani nyepesi za mipaka ya kiutawala
Administrative boundary layers that can be simplified without gaps between neighbors.
🎨
Programu za wavuti za nje ya mtandao (PWA)
An offline application or a PWA: the map takes several times less space than in GeoJSON.
🗺
Uchanganuzi na uonyeshaji (Observable)
Exploratory analysis in Observable and notebooks — the data loads as a single small file.

Jinsi ya Kusafirisha TopoJSON

1
Chagua eneo
Chora mstatili au poligoni kwenye ramani shirikishi katika osm2cdr.com
2
Chagua TopoJSON
Chagua TopoJSON (Topology-Aware JSON) kutoka orodha ya miundo 140 ya usafirishaji inayopatikana
3
Safirisha
Bofya Safirisha na upokee faili yako ya .topojson ndani ya dakika 1-5
4
Pakua
Pakua faili tayari ya TopoJSON na uifungue katika D3.js

Jinsi ya Kufungua Baada ya Kuhamisha

Bila malipo

Pata usafirishaji wa ramani za TopoJSON (Topology-Aware JSON)

Pakua ramani za kitaalamu za TopoJSON kutoka OpenStreetMap. Uzalishaji wa papo hapo, eneo lolote.

Bila malipo / usafirishaji
Safirisha TopoJSON sasa →

Maswali Yanayoulizwa Mara kwa Mara

TopoJSON inatofautianaje na GeoJSON? ▼
Naweza kubadilisha TopoJSON kurudi kuwa GeoJSON? ▼
Kwa nini D3.js hupendelea TopoJSON? ▼
Je, TopoJSON inasaidia 3D? ▼
How are the layers arranged inside the file? ▼
What is quantization and what does it affect? ▼

What people who already downloaded say

Finally, maps can be downloaded as vectors. Thanks to the author!
Ilyas, September 2026

Map: Ufa, AI

everything is really cool, I didn't expect I'd just come and download a piece of the map! thanks!!!
Sergey, September 2026

Map: Nizhny Novgorod, PMTiles

HUGE THANKS!!! A VERY GOOD PROGRAM!!! I was looking for a vector map where 3 countries meet - it helped a lot!!
Andrey, September 2026

Map: Kazakhstan and Altai, PDF

Well done! You've done a big and much-needed job!
Artem, September 2026

Map: Roshchino, Leningrad Region, GeoTIFF

Ivan, thank you so much! Not just a man - a Great Man!
Konstantin, September 2026

Map: Saratov Region, GeoJSON

ivan, you're simply a wonder. Thank you for an incredibly cool service
Architecture student, September 2026

Map: Bogashevo near Tomsk, DXF

Maoni yote

Miundo Inayohusiana

Husafirishwa Pamoja Mara kwa Mara

Related Articles