Download OpenStreetMap Data: Buildings, Roads and POIs
Select an area on the map and get buildings, the road network, water, green areas and points of interest from OpenStreetMap. Download them as shapefile, DXF, GeoJSON, KML or CSV, in UTM, WGS84 or Turkish TM coordinates.
Download
In the shapefile zip, each category is a separate layer (.prj, .cpg UTF-8), plus a README.txt with the ODbL terms. DXF layers are named after the categories. The CSV holds POIs and address points.
Features by category
Click a feature on the map to see its attributes.
Data, Licence and Privacy
Data © OpenStreetMap contributors, ODbL 1.0. Show this credit wherever you use it; if you publicly distribute a derived database, share it under the ODbL. For the query, the boundary coordinates of your selection and the chosen categories are sent to a public Overpass API server; as with any request, your browser also passes on your IP address. Conversion and file creation run in your browser.
Related Tools
What this tool is for
OpenStreetMap is an open map database maintained by volunteers worldwide, and in many cities its building, road and point-of-interest data is very detailed. When a project needs building footprints for a neighbourhood, the road network for a route study, or the locations of schools, pharmacies and bus stops for an analysis, this tool turns the data of your selected area into formats that GIS and CAD software open directly.
How to use it
- Zoom to your study area. If you know the coordinates, use the "Go to location" box; the "Sample: central İzmit" button selects a small area so you can try the tool.
- Draw a rectangle or a polygon; if you work with the keyboard, "Visible area" selects what is shown on screen. The area can be up to 25 km².
- Tick the layer categories. Roads are split into four classes and POIs into ten groups; switch off the ones you do not need.
- Press Fetch Data. Results are coloured on the map and the feature counts per category are listed in a table.
- Choose the coordinate system and download the format you need. The UTM zone (and the TM zone in Turkey) is chosen from the location of the selection.
Layers and outputs
- Shapefile: each category is a separate layer: buildings, roads, water, green areas and so on. When a category holds both areas and lines (lakes and streams, for example), two files are created. Attributes are written in UTF-8, with .prj and .cpg files included.
- DXF: layer names follow the categories (BUILDINGS, ROADS_MAJOR, ROADS_SECONDARY, ROADS_LOCAL, ROADS_PATH, WATER, POI_HEALTH and so on). Buildings are closed LWPOLYLINEs; with the option on, height is written as the polyline thickness, so buildings appear in 3D in CAD. POIs and addresses are points, optionally with their name or house number as text.
- GeoJSON: all features with their complete OSM tags in a single file.
- KML: coloured features grouped in folders by category, ready for Google Earth.
- CSV: POIs and address points with name, type, latitude, longitude, x and y in the selected system, phone and opening hours.
The height field (h_est) comes from the OSM height tag or, failing that, is estimated as building:levels times 3 m. Many buildings have neither value; an empty field means unknown.
Data and method
Data is read through the Overpass API, the read-only query service for OpenStreetMap. The query returns the objects intersecting your selection together with their geometry. Multipolygon relations (buildings with courtyards, lakes with islands) and road segments are converted to GeoJSON with osmtogeojson (MIT); clipping, area and centroid operations use Turf 7.2.0 (MIT). Coordinates are transformed with proj4js 2.9.0 (MIT); ITRF96 and ETRS89 are treated as equal to WGS84, as the difference of about a metre is below OSM accuracy. For ED50 in Turkey the EPSG:1784 "ED50 to WGS 84 (30)" parameters are applied. The map runs on Leaflet 1.9.4 (BSD-2-Clause), drawing on Leaflet.draw 1.0.4 (MIT) and zip creation on JSZip 3.10.1 (MIT); icons come from Lucide (ISC). Basemap tiles load from OpenStreetMap and Esri servers.
The Overpass servers are run free of charge by the community. Their usage policy expects a user to stay within about 10,000 queries and 1 GB of data per day, and an overloaded server answers with HTTP 429. For this reason the tool limits the selection to 25 km², checks the element count first for areas above 8 km², waits a few seconds between consecutive queries and moves to an alternative server when one is busy.
Licence: ODbL
OpenStreetMap data is licensed under the Open Database License (ODbL) 1.0. You may use, adapt and share it, including in commercial projects, on two conditions: show "© OpenStreetMap contributors" wherever you use it, and if you publicly distribute a database derived from it, share that database under the ODbL too. The README.txt in the zip, the licence fields in the GeoJSON and the comment in the DXF header carry this credit along with the file.
Accuracy limits
- Not complete: OSM coverage varies from place to place. City centres usually have detailed buildings and roads; rural areas may lack buildings and tracks.
- Positional accuracy: features are mostly traced from satellite imagery, and shifts of a few metres are common. The data does not replace survey, cadastral or setting-out work.
- Currency: the data reflects OSM at the time of the query; the OSM data time is shown in the results panel.
For professional projects
If you need OSM or in-house CAD data migrated into a structured GIS with its layers, attributes and coordinate system intact, or published on an internal or public web map, learn more about Rodosto Teknoloji or get in touch.
Frequently Asked Questions
Can I use OpenStreetMap data in a commercial project?
Yes. OpenStreetMap data is licensed under the Open Database License (ODbL) 1.0, which allows commercial use. Show "© OpenStreetMap contributors" wherever you use the data or maps made from it. If you publicly distribute a database derived from it, you must share that database under the ODbL as well.
Why is the selection limited to 25 km²?
The data comes from shared Overpass servers run by volunteers, which give each user limited capacity. In a dense city centre, 25 km² can mean tens of thousands of buildings and road segments; larger areas strain the server and become hard to process in the browser. Regional OSM extracts are a better fit for large areas.
Do buildings in the DXF have height?
If you enable the option, buildings are written as closed polylines with a thickness equal to their height. Height is taken from the OSM height tag or, failing that, estimated as building:levels times 3 m. Buildings without either value stay flat. Many buildings in OSM have no level data.
Why does the query fail or take long?
The shared Overpass servers are sometimes busy and return HTTP 429 or 504. In automatic mode the tool tries alternative servers in turn. If all of them are busy, wait a few minutes and try again, or select a smaller area and fewer categories.