Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revert #64 #71

Merged
merged 2 commits into from
Jul 12, 2022
Merged

revert #64 #71

merged 2 commits into from
Jul 12, 2022

Conversation

nilsnolde
Copy link
Owner

fixes #70

reverts #64 but mentions more explicitly what one can expect of osrm's "profile" parameter.

@@ -27,7 +27,7 @@
class OSRM:
"""Performs requests to the OSRM API services."""

_DEFAULT_BASE_URL = "https://router.project-osrm.org"
_DEFAULT_BASE_URL = "https://routing.openstreetmap.de/routed-bike"
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

finally updated the default url

)

def directions(
self,
locations,
profile,
profile="driving",
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assuming most people want to hit the public servers

@@ -349,21 +360,23 @@ def matrix(
)

params = self.get_matrix_params(
locations, profile, sources, destinations, annotations, **matrix_kwargs
locations, profile, radiuses, bearings, sources, destinations, annotations, **matrix_kwargs
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weirdly, radiuses and bearings were missing from matrix requests

Copy link
Contributor

@chrstnbwnkl chrstnbwnkl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole profile concept is a mess in OSRM, especially when the public deom servers don't even make use of it :D

routingpy/routers/osrm.py Outdated Show resolved Hide resolved
@nilsnolde nilsnolde merged commit 5bc7474 into master Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OSRM profiles removed
2 participants