Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between osrm route and match service

Tags:

osrm

What is the difference between OSRM route service and match service?

like image 320
Shailendra Avatar asked Apr 13 '17 04:04

Shailendra


People also ask

What is OSRM API?

Description An interface between R and the 'OSRM' API. 'OSRM' is a routing service based on 'OpenStreetMap' data. See <http://project-osrm.org/> for more information. This package allows to compute routes, trips, isochrones and travel distances matrices (travel time and kilometric distance).

How do you use OSRM?

I'm assuming you've already prepared the data with osrm-extract and osrm-prepare. When you then run osrm-routed, OSRM starts up its own server; you don't need to provide a further server. By default this listens for requests on port 5000, though you probably want to change this if you're deploying a public instance.

What is OSRM backend?

The Open Source Routing Machine or OSRM is a C++ implementation of a high-performance routing engine for shortest paths in road networks. Licensed under the permissive 2-clause BSD license, OSRM is a free network service. OSRM supports Linux, FreeBSD, Windows, and Mac OS X platform. Open Source Routing Machine (OSRM)


Video Answer


1 Answers

According to OSRM documentation, route and match are 2 endpoints with different objectives:

  • Route: It will return the fastest route between the coordinated in the supplied order. For example:

    https://router.project-osrm.org/route/v1/driving/-77.0969009399414,38.89397221118197;-77.08866119384766,38.88154580068335;-77.0745849609375,38.88515369217454;-77.05432891845703,38.90586211685612?overview=false&alternatives=true&steps=true

    A call to this endpoint will return the shortest path from lat: -77.0969009399414, lon: 38.89397221118197 to lat -77.08866119384766, lon: 38.88154580068335 and then to lat: -77.05432891845703, lon: 38.90586211685612

  • Match: This endpoint works in a complete different way. Given a GPS dataset, the match service will try to match those points to the road network in the most pausible way.

So, if you have few GPS points and want to get the best route to visit them, you will use the route service. If you have a lot of GPS points and want to re-construct the most probable followed path, you will use the match service

like image 132
ares1986 Avatar answered Sep 28 '22 02:09

ares1986