-
Notifications
You must be signed in to change notification settings - Fork 128
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
Navitia-Geovelo mapping update #3994
Conversation
@@ -188,11 +188,11 @@ def _call_geovelo(self, url, method=requests.post, data=None): | |||
@staticmethod | |||
def get_geovelo_tag(geovelo_response): | |||
if geovelo_response['title'] == 'RECOMMENDED': | |||
return 'rapid' | |||
return 'balanced' | |||
elif geovelo_response['title'] == 'FASTER': |
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.
I would have mapped "rapid" with this one : rapid is a well-known tag in Navitia, not shorter ;)
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.
Yep you'r right, but our front team use the "shortest" tag to highlight the "itinéraire rapide"
elif geovelo_response['title'] == 'FASTER': | ||
return 'shortest' | ||
elif geovelo_response['title'] == 'SAFER': | ||
return 'balanced' | ||
return 'comfort' | ||
elif geovelo_response['title'] == 'BIS': | ||
return 'comfort' |
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.
so there could be 2 comfort solutions ?
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.
Yes :)
Following several customer feedback, I have adjusted the Navitia geolveo alternatives mapping.