How to get google driving instruction using google map api on android?

被刻印的时光 ゝ 提交于 2019-12-12 08:18:43

问题


I'm newbie at android programing. I have read many interesting driving direction application. so, I tried to build map and gps based application.

I can get and show direction between 2 point , but I don't know how to show textual instruction like

http://i.stack.imgur.com/7i7ei.jpg

Can somebody help me out? Or give me toturial? Thank for you kindness


回答1:


This api gives you an information about the route steps:

http://maps.googleapis.com/maps/api/directions/json?origin=&destination=&sensor=true&alternatives=true&units=metric;

Parse the JSON, create listActivity and put the data in it.That is all

P.S.

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



来源:https://stackoverflow.com/questions/6678420/how-to-get-google-driving-instruction-using-google-map-api-on-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!