-
Notifications
You must be signed in to change notification settings - Fork 684
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
OSRM Serializer: Adds voice instructions #4506
Conversation
… end of the maneuver the voiceInstruction should be heard based on the speed along the end of the maneuver
looking excellent so far. i have to review it a bit more but i have broader questions:
|
…stance, add tests for short depart and intermediate maneuvers
…he final edge based on the elapsed seconds
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.
im sure after trying it out we'll want to tweak it but just having this even untweaked is a great place to start, thank you!
@nilsnolde we can ask contributors to merge master into thier branches and then merge when we see they have done that. that way we don't pollute the squash merge with other people's commits |
Thank you!
I am not entirely sure I understand what you mean. Can you give me an example for verbal multi-cue for short successive maneuvers?
I would love to see the prepositional phrase "in Xm". It would tie in nicely with the The way I approached this problem was to simply take the verbal instructions which are available in the default valhalla serializer and expose them in the OSRM serializer as well. These are the verbal instructions available in the maneuver:
Examples: "instruction": "Turn left onto Main Street/Route 123. Continue on Route 123.",
"verbal_transition_alert_instruction": "Turn left onto Main Street.",
"verbal_succinct_transition_instruction": "Turn left.",
"verbal_pre_transition_instruction": "Turn left onto Main Street, Route 123.",
"verbal_post_transition_instruction": "Continue on Route 123 for 2 kilometers.", The From the other instructions I really wasn't sure which instructions would be the best to choose. My impression was that the Maybe what you are saying is, that I should add the |
Having just written that I went back to the docs and found this: https://valhalla.github.io/valhalla/api/turn-by-turn/api-reference/#trip-legs-and-maneuvers So the actual order should be:
|
…rt_instruction and verbal_pre_transition_instruction when they are available
I changed the code to use both What do you think @kevinkreiser ? I would love to see this get merged. Is there anything else that I can do to move this forward? Getting the distance into the |
let me take a quick look tomorrow and then yeah we can merge |
@eikes why has so much of the test been commented out? it kind of looks like maybe so you could focus on one test maybe and you forgot to uncomment the others? there is a way to do that when running with the tests. if this is what you are trying to do let me know |
My bad! I was only running these tests. I should have checked again. Sorry! I‘ll fix it ASAP |
@kevinkreiser The tests are back again, sorry. Yes I was trying to only run my specific tests. I am a bit ashamed to admit that I used the commenting method, because I was too lazy to figure out how to run individual tests. Now that it caused this lapse, I will not use that method anymore. I looked it up and I could and should have used this:
|
haha yep thats what i was going to tell you about thanks! |
🥳 |
Issue
There is a proprietary extension of the OSRM routing format used in the Mabox Navi SDK and MapLibre Navi SDK, both in iOS and Android. These SDKs work better when the voiceInstructions attribute is present in the steps.
This PR adds these voice instructions by using the existing
verbal_pre_transition_instruction
andverbal_post_transition_instruction
in the maneuver.Fixes #4482
Tasklist
If you made changes to the lua files, update the taginfo too.Requirements / Relations