View Single Post
Posts: 137 | Thanked: 150 times | Joined on Jan 2010
#66


I had been planning on putting together a python http espeak server at the weekend but you are way ahead of me.

What I would like to do:
1. An event for messages like "After 200 meters turn left"
2. Then when close "turn left"
3. A "2D" icon display for the next maneuver rather than cluttering up the map
4. Update the distance after each maneuver.

As you might have guessed the detection for when we pass a maneuver is not very clever: I just compare the straightline distance from the current position to the maneuver to a fixed value. I think this should work reasonably OK in most cases with a reasonable threshold, and figuring out how to measure the distance accurately along the road would be a lot more work.

It should be possible to use the maneuver getDescription() method with the translator object to generate localized messages.