OpenStreetMap as geodata source

OpenStreetMap – the biggest geodata source

Every day OpenStreetMap project gains popularity, new users and new mappers all over the world. Driven by community OpenStreetMap nowadays became one of the biggest geodata sources. All of us already used to utilize the OSM based maps, which are easy to integrate, easy to style and relatively inexpensive. Moreover, there are already a lot of services, for example, routing, geocoding and others, that are based on some OSM data. However, a lot of geodata added to OSM is still underrated and used only for the generation of visual map tiles.

What kind of geodata can I find in the OSM database?

OpenStreetMap contains an enormous amount of data – stating from administrative boundaries and main streets to benches and single trees. Often it’s not only visible information but all available data about the place. For example, the number of floors of a building, websites, opening hours and other data.

We recommend you to start with the OpenStreetMap website to find out what kind of data is available for your use-case and region:

  • Zoom the map in to the region
  • Select “Query features” tool to get the geodata present on the map
  • Click on a map and explore found features
Getting geodata from OSM

How good is the quality of the OSM geodata?

Working with the OSM database you need to understand that the data added by thousands of different people with different backgrounds and knowledge. That’s why sometime it may happen that different tags or even sometimes different data types were used to map places. So it may require additional post-processing of the OSM data. On the other hand, the community works hard to unify tags, data formats, and increase the quality of the data. So the OSM geodata quality constantly increases.

How can I get the geodata from the OSM database?

Even if OpenStreetMap is open and free, it could be tricky to get the data without expertise. Here are some ways how to get data from OSM. Depending on requirements as well as the amount of time and money you plan to spend, some of them may fit better your conditions.

Places API

It’s the simplest way, but the most restricted one. There are a number of companies that provide an API to query amenities and points of interest. This could be the perfect solution if you are simply looking for places and some information about them.

Check our Places API. We offer queries for points of interest and amenities of different types for a specified bounding box. Together with that, we transfer all OSM tags added to a place.

1. Easy
1. Cost money
2. Restricted
Overpass API

Another way to get geodata from OSM is Overpass API. It’s a more complicated way, while it requires a knowledge of Overpass QL query language. However, thanks to the community there are a lot of examples and guidelines on the web.

The API acts as a database – gets queries and returns data. You can create simple queries or complicated ones, with conditions and geo-operations. With the help of Overpass Turbo – web-based frontend, you can run Overpass API queries and get results on an interactive map or as a text.

At the moment there are several Overpass API instances provided by the community, so you can start for free and without registration. But all of them have restrictions and limits.

Geoapify offers a commercial instance of Overpass API. Contact us to get access to it.

1. Flexible and powerful
2. Community support
3. Free for small volumes
1. Requires a knowledge of Overpass QL query language
2. Commercial solution required for big volumes
OSM data extracts

Probably the most complicated but the most powerful and free way to use OSM as a geodata source.

As OpenStreetMap is an open-source project, you can always download the most recent data extracts from a website. By downloading the data you need to keep in mind that the whole planet database is about 49 GB (PBF file, Feb. 2020) and it may make sense to use parts of it – separate continents or countries.

There are different services that provide access to OSM data:

The downloaded file can be processed with a variety of tools or can be imported into a SQL database:

  • Osmosis – converting OSM files among different formats and databases
  • Osm2pgsql – importing OSM files into PostGIS database
1. Flexible and powerful
2. Free for small and big volumes
1. Requires expertise in databases and SQL
2. Big data extracts require decent servers (min 32GB RAM, 500-700GB SSD)
3. The data import may take up to several days
Custom data sets

If fast results and data quality are important for you you can order a custom geodata set from specialists.

Geoapify offers a service to create custom geodata sets. Just describe your needs – what kind of data, data region, data format, and we make the work done for you! Contact us for more information.

1. Save time and resources
2. Highquality results
1. Cost some money

What is OpenStreetMap and how it is better than Google Maps

About OpenStreetMap

OpenStreetMap, or “OSM”, is a Wikipedia for the maps. It is a free, open, and global community project. OpenStreetMap mission is to map everything that worth to be mapped. And, similar to Wikipedia, OSM data can be added, edited and used by everyone.

I say “data” and not “maps” because that’s what OSM essentially is. Open Street Map is a big open database full of free geospatial data, available for everyone!

Indeed, OSM is widely used to create digital maps. But it can do way more than that. OSM applications include routing and navigation, converting GPS coordinates to addresses, searching places by name, analyzing map data and many many more.

Driving route from Berlin to Potsdam, Germany, calculated on OSM data
Driving route from Berlin to Potsdam, Germany, calculated on OSM data

In 2019, OpenStreetMap with its more than 5 000 000 members and more than than 1 200 000 contributors is clearly the biggest and most successful crowd-sourced mapping project in human history. And as Facebook, Uber, Microsoft and thousands of others are utilizing OSM data in their products, almost anyone can be counted as OSM user, direct or indirect.

Power of crowdsourcing

OpenStreetMap project was started in 2004. Back then map data were controlled by commercial organizations and governments, hard to use and expensive to buy. Mapping itself was done primarily by the teams of GIS specialists. Most of the time, they were not in a position to know how well data they map reflecting the reality, to validate and timely update them.

OpenStreetMap managed to disrupt the industry and change all of that in just a few years. It helped to demystify cartography and geography as a science and has given everyone the possibility and tools needed to contribute. No long formalities, no expensive licenses or equipment – anyone with a computer and Internet access could join and start making the world better.

And that approach worked amazingly well!

First 10 years of OpenStreetMap mapping progress

In fact, OpenStreetMap became so successful that Google had to play a “catch-up” game. The company introduced Google Map Maker, with familiar OSM-like interface, to allow people around the world to contribute.

Of course, it was not the same. The main difference is – if you contribute to OSM, data belong to you and OSM community, and stay free and open for everybody, under creative commons license. And when you contribute to Google Maps – well, all changes you make belong to Google, and it is up to Google to decide who and how can use that data.

Number of monthly edits for OpenStreetMap exceeds 8 000 000
Number of monthly edits for OpenStreetMap exceeds 8 000 000

In addition, every change made to OpenStreetMap is immediately visible to others, when in the case of Google it is delayed by long moderation and review process.

Crowdsourced mapping with immediate access to the changes appeared to be especially important for mapping crisis and natural disaster areas. In 2010, when Haiti suffered from a disastrous earthquake, OSM volunteers managed to map the whole island in just a couple of days from satellite imagery.

OpenStreetMap volunteers mapping Haiti after 2010 earthquake

This would not be possible with any existing commercial provider. Businesses are bound to mapping data that are profitable to sell. Also, most of the time they only capable of publishing results on a particular schedule and cannot do it every second, as OSM does. And, even Google with huge investments, cannot match the scale and the power local knowledge of the OSM community.

History of OpenStreetMap

Like most many things, OpenStreetMap started small. In August 2004, Steve Coast, back than a physics student at UCL, came up with an initiative to create free, editable maps of UK.

Just a few months later, by the end of 2004, web site was up and running, based on 100% open source software. It contained community email list, wiki documentation and first versions of map editing software.

By the end of 2005, OpenStreetMap had more than 1000 registered users. And in August 2006 OpenStreetMap Foundation was formally registered as a non-profit, UK based company. At that time OSM community included more than 3000 members.

Following infographic depicts major and noteworthy OpenStreetMap milestones.

Moments of OpenStreetMap history infographic, by Martin Elmer, from Visually
Moments of OpenStreetMap history infographic, from Visually

Part of OSM success related to its explosive community growth and perfect timing. OSM growth matched with the global adoption of smartphones, which at the same time can benefit from the quality offline map data and ideal for the “on-the-go” mapping. Most of the smartphone map and navigation applications are fully or partially based on the OpenStreetMap.

Explosive growth of OSM community year-to-year
Explosive growth of OSM community year-to-year

Another important component of success is related to the active position of the OpenStreetMap Foundation. Successful negotiations with companies like Bing, DigiGlobe, and Ersi allowed using their high-quality satellite and aerial imagery for the OpenStreetMap mapping efforts. Thanks to this, the ever-growing OSM community had enough raw material to work on.

Arcgis satellite imagery as base layer in OSM map editor
Arcgis satellite imagery as base layer in OSM map editor

OpenStreetMap vs Google Maps

OpenStreetMap data widely used to create “digital maps” or “slippy maps“, similar to Google Maps. Both OpenStreetMap and Google Maps support searching places by name and route calculations.

OpenStreetMap vs Google Maps

No surprise that Google Maps, as a state-of-the-art commercial product backed by one of the biggest tech companies in the world, has more polish on it.

It has smarter place search, better user interface, fast 3D accelerated map rendering. Google Maps also gives its users the possibility to submit new and corrected information, which may be added to the map after moderation.

Google Maps also has amazing satellite and aerial imagery, and very cool “street view” mode – something that current OpenStreetMap cannot offer.

How can OpenStreetMap compete or be better than that? By offering features that Google Maps, as a cloud service, cannot offer.

OpenStreetMap is more than just a map of the world, place search and navigation. It gives free and unlimited access to the entire dataset, with a complete history of changes, without limiting who and how can use it. OpenStreetMap is a perfect foundation for emerging innovative and creative solutions and targeted products.

With OSM, map data for the whole planet can be downloaded and used completely offline. Google Maps can only cache small region and generally can not work without an Internet connection.

OSM dataset can be used to large-scale geocoding, routing and analysis, which would be impossible using Google Maps.

OpenStreetMap for business

OpenStreetMap is awesome, yet using it for your business may be quite challenging. As a non-profit organization, OSM does not provide uptime SLAs, support and consulting.

We at Geoapify believe that this limits OSM adoption, and happy to support you by providing stable, affordable, business-friendly OpenStreetMap mapping service. In addition to maps, we also provide a complete set of tools, including places search, geocoding, routing and reachability analysis.

And the best thing – you can register and start to use this all for free, also for commercial purposes. Give our services a try with our interactive Playground – no registration required.

You can reach us at any time at [email protected]. We will be happy to help!

OpenStreetMap is more than just a map

Even if OpenStreetMap has a “map” in its name, it’s not just a map. It’s a collaborative project, which allows collecting and structuring geodata into a database. The OpenStreetMap database, in turn, becomes a base for detailed and up to date maps, map components and map solutions on top of it.

The OpenStreetMap community is the biggest GIS community in the world and counts more than 1.000.000 active contributors so far and grows every day. As a result, we have accurate and up to date maps data for the whole planet. Read OpenStreetMap wiki to learn more.

Are OpenStreetMap data and maps free to use?

OpenStreetMap data is absolutely free! Everybody can download and use OpenStreetMap data for personal or commercial purposes (do not forget about attribution). In addition, there are many open-source projects with a permissive license, which use the OpenStreetMap database and allow creating maps, components, and tools based on them.

But what is the cost of setup, running and maintaining map services? It requires a lot of time, resources and expertise to start, run and keep up to date your own OpenStreetMap database instance, map tiles servers and map components.

That’s why there are third-party commercial companies offering products and components based on OpenStreetMap data.

Products based on OpenStreetMap data

Besides the maps by itself, there are many applications based on OpenStreetMap data – everything around maps, geospatial analytics, and location intelligence. The applications and services could be split by type. Some of the types are listed below.

Map tiles servers

Map tiles it’s prepared parts of maps. During map rendering a mapping library requests required map tiles from a server. Map tile servers could provide different map styles and even different formats. For example, raster or vector formats.

Geocoding and reverse geocoding

Geocoding and reverse geocoding are two base map operation you usually perform. The first one gives a place coordinates from the place address, the second one returns an address by coordinates.

You use geocoding applications for search on a map and input autocomplete.


Routing applications build a route between two or multiple points. Moreover, some of them are able to calculate the optimal routes and provide turn-by-turn directions. Together with driving or walking transportation modes, a lot of routing applications are able to build routes for public transport.

Places and amenities search

Places and amenities search services allow searching locations for given criteria. For example, “restaurants near me which are open now”, “all P+R in the city” and so on.

Some services provide geodata and polygons for some features. Which could be useful when drawing administrative or political boundaries or other regions on a map.

Isodistances and Isochrones (reachability and travel time maps)

How far can I get within 30min from my home? Where to book a hotel not to spend more than 20 min traveling to my points of interests? Isodistances and isochrones show areas reachable within a given distance or within a given time from a location.

As well as routing, iisolines are built for a transportation mode or a combination of transportation modes (for example, public transport + walking, park + ride).

Travel Time Map
Travel time map

Geoapify offers APIs and components built on OpenStreetMap data

We provide everything you need to create a map or extend an existing map with Geospatial analytics features. Starting from Free tariff plan we offer tariff plans for different load and usage. Register and try our APIs and components for Free.