GeoJSON 💻

GeoJSON

Open Beta
.geojson · application/geo+json

GeoJSON er et åpent geodataformat basert på JSON. Standardløsningen for webutviklere, kompatibel med Leaflet, Mapbox, OpenLayers, D3.js og all GIS-programvare.

Eksporter GeoJSON nå ✨ Åpen beta — gratis, ingen begrensninger

Hovedfunksjoner

Lesbart JSON-format
Objektegenskaper (navn, typer)
WGS84-projeksjon
Innebygd nettleserstøtte
Example GeoJSON export (central Moscow, 1x0.5 km)
Example: central Moscow, ~1×0.5 km, medium detail

Om GeoJSON-formatet

GeoJSON is an open geodata format (RFC 7946) in which geography is written as ordinary JSON: an array of features, each with a geometry and a set of properties. A human can read it in a text editor, any programming language parses it in one line, and practically all web cartography understands it — Leaflet, Mapbox GL, OpenLayers, D3.js — with no plugins or converters.

An OSM map is exported to GeoJSON when you need the features themselves rather than a picture: to attach a layer to a website, compute statistics for a district, filter the categories you need, load the data into PostGIS or run it through GeoPandas. It is also the most convenient intermediate format: from it, ogr2ogr or QGIS will make SHP, GeoPackage, KML — anything you like.

The output is a single UTF-8 file: one FeatureCollection gathering all the layers of the selected area. Every feature keeps its OpenStreetMap attributes (name, type, tags) and a service property _layer with the name of its source layer — one line of filtering takes the data apart again into roads, buildings, water, greenery and points of interest. Coordinates are WGS84 (EPSG:4326), as the specification requires; the recorded precision is six decimal places, about ten centimeters on the ground: the file drops into any GIS and any web framework with no reprojection.

Hvilket program åpner GeoJSON-filer

Følgende programmer og applikasjoner kan åpne, redigere og arbeide med GeoJSON (.geojson)-filer eksportert fra OSM2CDR:

💻Leaflet 💻Mapbox 🌎QGIS 💻D3.js 💻Kepler.gl 💻GeoPandas

Format specifications

Hvem bruker GeoJSON-kart

🏗
Webutvikling
The native format for Leaflet, Mapbox and OpenLayers: the map is attached to a site with a couple of lines of code.
💻
Interaktive kart
Vector layers with attributes for clickable maps with tooltips and filters.
📊
Datavisualisering
A ready source for D3.js and dashboards: boundaries, POI and routes in standard JSON.
🎨
API-er og tjenester
A lightweight geodata exchange format for REST APIs and microservices.
🗺
Data Science
Loading city geometry into GeoPandas and QGIS for spatial analysis.

Slik eksporterer du GeoJSON

1
Velg område
Tegn et rektangel eller polygon på det interaktive kartet på osm2cdr.ru
2
Velg GeoJSON
Velg GeoJSON fra listen over 127 tilgjengelige eksportformater
3
Eksporter
Klikk Eksporter og motta .geojson-filen din på 1–5 minutter
4
Last ned
Last ned den ferdige GeoJSON-filen og åpne den i Leaflet

Slik åpner du filen etter eksporten

Populære kart i GeoJSON

Free

Få karteksporter i GeoJSON

Last ned profesjonelle GeoJSON-kart fra OpenStreetMap. Umiddelbar generering, uansett område.

Gratis / eksport
Eksporter GeoJSON nå →

Ofte stilte spørsmål

Kan jeg åpne GeoJSON i en nettleser?
Er GeoJSON gratis?
Kan jeg laste GeoJSON inn i PostGIS?
How do I split the export back into layers?
Which projection do the coordinates arrive in?
What should I do if the file turns out too big for a browser?

Sammenlign med andre formater

Relaterte formater

Ofte eksportert sammen

Related Articles