简体   繁体   中英

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.

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!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM