views:

134

answers:

2

Hello, how can I implement algorithms such as Dijkstra or backtracking on Google Maps integrated in Android ? For example I want to compute a route from city A to city B such that I pay the lowest price for gas.

A: 

Check this post. It has the Route finding Example. Google removes the Route finding api. But we have develop the code for the draw the route using Overlay. this is what done on that working example.

Praveen Chandrasekaran
Hello, is it authorized ?
bogdan
we are developing that code with our OWN Logic from the available package. then Who want to authorize it? that example helps you for that.
Praveen Chandrasekaran
Ok, thank you very much. I asked that because of some posts from that link saying you can get blocked your google key for maps
bogdan
A: 

Since Google Maps doesn't provide access to the actual road data, I don't think it is possible to implement your own routing algorithm.

You could use road data from another source such as http://openstreetmap.org .

RoToRa
Thanks, do you have any example ?
bogdan
The best would be to probably start here: http://wiki.openstreetmap.org/wiki/RoutingThere is a link to the Routing mailing list, where you can get more information. Also there is a new Stackoverflow-like help site for OSM: http://help.openstreetmap.org/
RoToRa