Android Question Data from Google Maps in list / array

arbuz

Member
Licensed User
Longtime User
Hello,
I am a totally blind person and I have made app for the blind, to help them easyer orientate within the physical world. Now I am planning to expand features of this program and I need to know if there is possible to somehow get the whole route data from Google Maps from current location to the destination. I need to get data like "Turn left on that street", and also latitude and longitude of that point.
Thanks for the tips in advance.
 

eurojam

Well-Known Member
Licensed User
Longtime User
Hello,
there is an API from Google called Google Directions API (https://developers.google.com/maps/documentation/directions/intro) which gives you route details like "Turn left on...". The free usage is limited up to 2500 directions requests per 24 hour period. You need to habe an API key, but this is explained in the link above. you can get the route details via http request, which is easy to realize with the httputils2 library. The result is either a json string or a xml, which you have to parse. Alternativly you can use the open Directions API from Mapquest (http://open.mapquestapi.com/), which is similar and also limited.

Best regards
Stefan
 
Upvote 0
Top