Need advice about which tool to choose?Ask the StackShare community!

OpenStreetMap

253
471
+ 1
58
OSRM

34
85
+ 1
0
Add tool

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 and OSRM

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."

See more
Replies (6)
Recommends
on
MapboxMapbox

I use Mapbox because We need 3D maps and navigation, it has a great plugin for React and React Native which we use. Also the Mapbox Geocoder is great.

See more
Recommends
on
OpenStreetMapOpenStreetMap

I use OpenStreetMap because that has a strong community. It takes some time to catch up with Google Maps, but OpenStreetMap will become great solution.

See more
Blair Gemmer
Software Engineer at VYNYL · | 2 upvotes · 186.3K views
Recommends
on
Google MapsGoogle Maps

Google Maps is best because it is practically free (they give you $300 in free credits per month and it's really hard to go over the free tier unless you really mean business) and it's the best!

See more
Shuuji TAKAHASHI
Recommends
on
Google MapsGoogle Maps

I use Google Maps because it has a lot of great features such as Google's rich APIs, geolocation functions, navigation search feature, street map view, auto-generated 3D city map.

See more
Recommends
on
OpenStreetMapOpenStreetMap

Its open source and we use it.

See more
Fabio Fraga Machado
Recommends
on
OpenStreetMapOpenStreetMap

I use OpenStreetMap because i have the control of the environment, using Docker containers or bare-metal servers.

See more
Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of OpenStreetMap
Pros of OSRM
  • 23
    Simple
  • 17
    Free
  • 9
    Open-Source
  • 8
    Open-Data
  • 1
    React/ RNative integration
    Be the first to leave a pro

    Sign up to add or upvote prosMake informed product decisions

    - No public GitHub repository available -

    What is OpenStreetMap?

    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.

    What is OSRM?

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

    Need advice about which tool to choose?Ask the StackShare community!

    What companies use OpenStreetMap?
    What companies use OSRM?
    Manage your open source components, licenses, and vulnerabilities
    Learn More

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with OpenStreetMap?
    What tools integrate with OSRM?

    Blog Posts

    JavaScriptGitHubNode.js+26
    20
    5070
    What are some alternatives to OpenStreetMap and OSRM?
    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.
    Mapbox
    We make it possible to pin travel spots on Pinterest, find restaurants on Foursquare, and visualize data on GitHub.
    OpenLayers
    An opensource javascript library to load, display and render maps from multiple sources on web pages.
    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.
    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.
    See all alternatives