TopoJSON 📊

TopoJSON (Topology-Aware JSON)

Price before payment
.topojson · application/json

TopoJSON — GeoJSON'ning topologiyani hisobga oluvchi kengaytmasi. Umumiy yoy kodlashidan (koʻpburchaklar orasidagi chegaralar faqat bir marta saqlanadi) va koordinatalarni butun sonli kvantlashdan foydalanadi — natijaviy fayl ekvivalent GeoJSON'dan 60-80% kichikroq. D3.js, Mapshaper va Observable uchun standart kirish; interaktiv xoropleth xaritalar va veb atlaslar uchun ideal.

OpenStreetMap data as of 5 October 2026 · 24 days ago

TopoJSON ni hoziroq eksport qiling ✨ Open Beta — bepul, cheklovlarsiz

Asosiy imkoniyatlar

✓Umumiy yoy kodlashi (GeoJSON'dan 60-80% kichikroq)
✓Koordinatalarni butun sonli kvantlash
✓Topologiyani saqlovchi soddalashtirish
✓Obyekt xususiyatlari saqlanadi

TopoJSON formati haqida

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.

TopoJSON fayllarini qaysi dastur ochadi

Quyidagi dasturlar va ilovalar OSM2CDR’dan eksport qilingan TopoJSON (Topology-Aware JSON) (.topojson) fayllarini ochishi, tahrirlashi va ular bilan ishlashi mumkin:

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

Format specifications

TopoJSON xaritalaridan kimlar foydalanadi

🏗
D3.js'da interaktiv xoropleth xaritalar
A choropleth in D3.js draws fast: shared district borders are stored and rendered once.
💻
Veb atlaslar va xaritaga asoslangan nashrlar
A web atlas and cartographic publications where page weight matters.
📊
Yengil maʼmuriy chegara xaritalari
Administrative boundary layers that can be simplified without gaps between neighbors.
🎨
Oflayn veb ilovalar (PWA)
An offline application or a PWA: the map takes several times less space than in GeoJSON.
🗺
Tahlil va vizualizatsiya (Observable)
Exploratory analysis in Observable and notebooks — the data loads as a single small file.

TopoJSON ni qanday eksport qilish kerak

1
Hududni tanlang
osm2cdr.ru interaktiv xaritasida toʻrtburchak yoki koʻpburchak chizing
2
TopoJSON ni tanlang
Mavjud 127 ta eksport formati roʻyxatidan TopoJSON (Topology-Aware JSON) ni tanlang
3
Eksport
Eksport tugmasini bosing va .topojson faylingizni 1-5 daqiqada oling
4
Yuklab olish
Tayyor TopoJSON faylini yuklab oling va uni D3.js dasturida oching

Eksportdan keyin qanday ochish kerak

TopoJSON formatidagi mashhur xaritalar

Bepul

TopoJSON (Topology-Aware JSON) xarita eksportlarini oling

OpenStreetMap’dan professional TopoJSON xaritalarini yuklab oling. Bir zumda yaratish, istalgan hudud.

Bepul / eksport
TopoJSON ni hoziroq eksport qiling →

Tez-tez beriladigan savollar

TopoJSON GeoJSON'dan nimasi bilan farq qiladi? ▼
TopoJSON'ni qaytadan GeoJSON'ga aylantirsam boʻladimi? ▼
Nega D3.js TopoJSON'ni afzal koʻradi? ▼
TopoJSON 3D'ni qoʻllab-quvvatlaydimi? ▼
How are the layers arranged inside the file? ▼
What is quantization and what does it affect? ▼

Convert to TopoJSON and back

Aloqador formatlar

Tez-tez birga eksport qilinadi

Related Articles