Difference between osrm route and match service

强颜欢笑 提交于 2019-12-10 15:49:52

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/43383783/difference-between-osrm-route-and-match-service

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!