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

Navitia-Geovelo mapping update #3994

Merged
merged 1 commit into from
May 10, 2023
Merged

Conversation

wassimbenaissa
Copy link
Contributor

Following several customer feedback, I have adjusted the Navitia geolveo alternatives mapping.

@wassimbenaissa wassimbenaissa changed the title Navitia Geovelo mapping update Navitia-Geovelo mapping update May 3, 2023
@@ -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':
Copy link
Member

@stifoon stifoon May 3, 2023

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 ;)

Copy link
Contributor Author

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'
Copy link
Member

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 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes :)

@kadhikari kadhikari merged commit f5514d6 into hove-io:dev May 10, 2023
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.

5 participants