DevYudh
DevYudh

Reputation: 2737

Android - Turn by turn Navigation

how can I provide navigational turn-by-turn in the android application which I am making? i didnt use google maps for this, i wanna build my own application which provide users with turn-by-turn navigation.

thx for helping me.

Upvotes: 0

Views: 2382

Answers (1)

Roberto C Serrano
Roberto C Serrano

Reputation: 121

Google has the Directions API.

http://code.google.com/apis/maps/documentation/directions/

Just request the XML or JSON version and parse through it. I used this in the past to draw a Point to Point path over the Google Maps view. It worked fairly well and was fairly trivial.

Look at the XML output, http://code.google.com/apis/maps/documentation/directions/#XML

Although what I used was the Coordinate information, it should be fairly trivial to parse the html_instructions to do what you want to do.

Here is a link to a past discussion where you can find code that does part of what you want: How to draw a path on a map using kml file?

You want to look for the answer from Alvinsj, DirectionMapActivity class.

Enjoy!

Upvotes: 3

Related Questions