-
Notifications
You must be signed in to change notification settings - Fork 30
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
revert #64 #71
Conversation
@@ -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" |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
There was a problem hiding this 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
fixes #70
reverts #64 but mentions more explicitly what one can expect of osrm's "profile" parameter.