StackShareStackShare
Follow on
StackShare

Discover and share technology stacks from companies around the world.

Product

  • Stacks
  • Tools
  • Companies
  • Feed

Company

  • About
  • Blog
  • Contact

Legal

  • Privacy Policy
  • Terms of Service

© 2025 StackShare. All rights reserved.

API StatusChangelog
  1. Stackups
  2. Stackups
  3. OSRM vs OpenStreetMap

OSRM vs OpenStreetMap

OverviewDecisionsComparisonAlternatives

Overview

OpenStreetMap
OpenStreetMap
Stacks258
Followers473
Votes58
OSRM
OSRM
Stacks34
Followers85
Votes0
GitHub Stars7.2K
Forks3.8K

OSRM vs OpenStreetMap: What are the differences?

Introduction

In this Markdown code, we will discuss the key differences between OSRM (Open Source Routing Machine) and OpenStreetMap (OSM).

  1. Processing and Routing: OSRM is a software that uses OpenStreetMap data and processes it to provide routing information. It optimizes the data for routing calculations in terms of time, distance, and other factors. On the other hand, OpenStreetMap is a collaborative mapping project that crowd-sources geographic data from volunteers worldwide.

  2. Database Structure: OSRM uses its own custom data structure called contraction hierarchies, which allows for faster and more efficient routing calculations. It preprocesses the map data and creates a compact graph structure, enabling quicker response times. OpenStreetMap, on the other hand, stores its data in a more traditional database format, allowing for flexible querying and editing.

  3. Routing Algorithms: OSRM utilizes sophisticated routing algorithms such as Dijkstra's algorithm, A* algorithm, and the contraction hierarchies algorithm. These algorithms enable fast, efficient, and accurate routing calculations for various modes of transportation. OpenStreetMap, however, does not provide routing algorithms on its own. It simply offers the raw map data, which can be used with different routing engines or software.

  4. Customization and Development: OSRM offers a more streamlined and developer-friendly interface with various APIs and tools for customization. Developers can integrate OSRM into their applications and tailor the routing engine to their specific needs. OpenStreetMap, on the other hand, is more focused on providing open and accessible map data without specific routing capabilities. It encourages third-party developers to build upon the OSM data to create their own routing solutions.

  5. Updates and Data Accuracy: OSRM relies on the map data provided by OpenStreetMap. Therefore, any updates or changes made to the OpenStreetMap database reflect in the routing calculations performed by OSRM. OpenStreetMap, being a collaborative project, ensures that the data is constantly updated by the community of contributors. This ongoing collaborative effort ensures that the map data remains accurate and up to date.

  6. Access and Availability: OSRM is available as an open-source software, allowing users to host their own instances and have full control over the routing engine. OpenStreetMap, being an open project, provides its data under an open license, allowing for widespread access and usage. Users can access the OSM data and utilize it with various routing engines, including OSRM.

In summary, OSRM is a software specifically designed for processing and routing OpenStreetMap data. It uses custom data structures and routing algorithms to provide fast and efficient routing calculations. OpenStreetMap, on the other hand, is a collaborative mapping project that provides open map data, allowing developers to build their own routing solutions.

Advice on OpenStreetMap, OSRM

StackShare
StackShare

Apr 4, 2019

Needs advice

From a StackShare Community member: "We're a team of two starting to write a mobile app. The app will heavily rely on maps and this is where my partner and I are not seeing eye-to-eye. I would like to go with an open source solution like OpenStreetMap that is used by Apple & Foursquare. He would like to go with Google Maps since more apps use it and has better support (according to him). Mapbox is also an option but I don’t know much about it."

183k views183k
Comments

Detailed Comparison

OpenStreetMap
OpenStreetMap
OSRM
OSRM

OpenStreetMap is built by a community of mappers that contribute and maintain data about roads, trails, cafés, railway stations, and much more, all over the world.

It is a C++ implementation of a high-performance routing engine for shortest paths in road networks

Emphasizes local knowledge; Contributors use aerial imagery, GPS devices, and low-tech field maps to verify that OSM is accurate and up to date; Built by a community of mappers that contribute and maintain data
Flexible import of OpenStreetMap data; Handles continental sized networks within milliseconds; Supports car, bicycle, walk modes; easily customized through profiles
Statistics
GitHub Stars
-
GitHub Stars
7.2K
GitHub Forks
-
GitHub Forks
3.8K
Stacks
258
Stacks
34
Followers
473
Followers
85
Votes
58
Votes
0
Pros & Cons
Pros
  • 23
    Simple
  • 17
    Free
  • 9
    Open-Source
  • 8
    Open-Data
  • 1
    React/ RNative integration
No community feedback yet
Integrations
No integrations available
C++
C++
GitHub
GitHub
JavaScript
JavaScript

What are some alternatives to OpenStreetMap, OSRM?

Google Maps

Google Maps

Create rich applications and stunning visualisations of your data, leveraging the comprehensiveness, accuracy, and usability of Google Maps and a modern web platform that scales as you grow.

Leaflet

Leaflet

Leaflet is an open source JavaScript library for mobile-friendly interactive maps. It is developed by Vladimir Agafonkin of MapBox with a team of dedicated contributors. Weighing just about 30 KB of gzipped JS code, it has all the features most developers ever need for online maps.

Mapbox

Mapbox

We make it possible to pin travel spots on Pinterest, find restaurants on Foursquare, and visualize data on GitHub.

OpenLayers

OpenLayers

An opensource javascript library to load, display and render maps from multiple sources on web pages.

ArcGIS

ArcGIS

It is a geographic information system for working with maps and geographic information. It is used for creating and using maps, compiling geographic data, analyzing mapped information, sharing and much more.

CSV2GEO

CSV2GEO

It provides live conversion of batch addresses into geographic coordinates (address to lat long) or turn coordinates into well formatted address. It creates and publishes interactive maps.

MapTiler

MapTiler

It is a software for map tile rendering. It has been designed for producing seamless maps and aerial photo layers covering whole countries. The rendering is fast and efficient, and it can fully utilize multiple CPUs to 100%.

MAPS.ME

MAPS.ME

MAPS.ME is an open source cross-platform offline maps application, built on top of crowd-sourced OpenStreetMap data. It was publicly released for iOS and Android.

LocationIQ

LocationIQ

Free and Fast Geocoding Service

Stadia Maps

Stadia Maps

We enable devs to contextualize their data on a map and build complicated apps involving routing, time zones, and more with our APIs. We hate billing surprises as much as you, and if you send us an email, you'll get a real human reply.

Related Comparisons

Postman
Swagger UI

Postman vs Swagger UI

Mapbox
Google Maps

Google Maps vs Mapbox

Mapbox
Leaflet

Leaflet vs Mapbox vs OpenLayers

Twilio SendGrid
Mailgun

Mailgun vs Mandrill vs SendGrid

Runscope
Postman

Paw vs Postman vs Runscope