Question

i want to just find a shortest path between the location on map. we have to pass the location's geopoint then click the button to get direction. it will show the shortest path like a blue line. how to do this? i search about this. many of them import a package com.google.googlenav.*;. where i have to get this? Any Idea????

Edit:got downloaded the Cloudemade API. how to draw the lines between the points.

Was it helpful?

Solution

Here there is a library that implements that: http://home.ameliemedia.com/android-app-aroundme/#tips I personally haven't tested it but by reading the comments there it should work.

OTHER TIPS

Google removed this functionality from their Android Google Maps SDK so you will have to use some other api to get directions between two points. Once you have the waypoints you will need to create an Overlay class and in the draw() method, use the Path class to draw a path between the points.

its the working example. fulfills all my needs.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top