gis-ops / routingpy

🌎 Python library to access all public routing, isochrones and matrix APIs in a consistent manner.
https://routingpy.readthedocs.io/en/latest/?badge=latest
Apache License 2.0
270 stars 26 forks source link

OSRM route returns sparse coordinates compared to ORS #36

Closed vutle closed 3 years ago

vutle commented 3 years ago

For the same route, I found that OSRM returns less coordinates compared to ORS. Is there a setting to make OSRM return all points?

OSRM offline image

ORS offline image

nilsnolde commented 3 years ago

For help with individual routing engines, please see their documentation to understand what's possible: http://project-osrm.org/docs/v5.5.1/api/#route-service

Also all the methods have docstrings in routing-py which tell you very conveniently what the router's parameters are doing (although the description for overview is pretty poor): https://routingpy.readthedocs.io/en/latest/?badge=latest#routingpy.routers.OSRM.directions

vutle commented 3 years ago

Thanks. I found that you need to set overview to full. overview = "full"