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

update profiles and preferences #135

Merged
merged 2 commits into from May 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions ORStools/common/__init__.py
Expand Up @@ -32,7 +32,6 @@
'driving-hgv',
'cycling-regular',
'cycling-road',
'cycling-safe',
'cycling-mountain',
'cycling-electric',
'foot-walking',
Expand All @@ -42,4 +41,4 @@

DIMENSIONS = ['time', 'distance']

PREFERENCES = ['fastest', 'shortest']
PREFERENCES = ['fastest', 'shortest', 'recommended']
2 changes: 1 addition & 1 deletion ORStools/common/directions_core.py
Expand Up @@ -124,7 +124,7 @@ def get_output_feature_directions(response, profile, preference, options=None, f
:param profile: Transportation mode being used
:type profile: str

:param preference: Cost being used, shortest or fastest.
:param preference: Cost being used, shortest, fastest or recommended.
:type preference: str

:param options: Avoidables being used.
Expand Down
2 changes: 1 addition & 1 deletion ORStools/proc/directions_lines_proc.py
Expand Up @@ -291,7 +291,7 @@ def _get_params_directions(line, profile, preference):
:param profile: transport profile to be used
:type profile: str

:param preference: routing preference, shortest/fastest
:param preference: routing preference, shortest/fastest/recommended
:type preference: str

:returns: parameters for optimization endpoint
Expand Down
2 changes: 1 addition & 1 deletion ORStools/proc/directions_points_layer_proc.py
Expand Up @@ -281,7 +281,7 @@ def _get_params_directions(points, profile, preference):
:param profile: transport profile to be used
:type profile: str

:param preference: routing preference, shortest/fastest
:param preference: routing preference, shortest/fastest/recommended
:type preference: str

:returns: parameters for optimization endpoint
Expand Down