I have an app that uses a map to show a certain, fixed, location. With the next update I’d like to show the route from the users current location to this fixed point. I already managed to get the users location via myLocationOverlay.
As far as I see it I need to send the coordinates to Google Maps, receive a .kml file with the points and draw the route from that. How can I get the values for latitude and longitude from myLocationOverlay or is there a better way to do what I want to do?
TIA
I have an app that uses a map to show a certain, fixed, location.
Share
You can use getMyLocation from
MyLocationOverlay. You then need to convert theGeoPointinto its respective degree for lat and long.Here is a reference for Geo.java that contains some of the function that you could use to convert the
GeoPointto its corresponding lat and longitude. In particular you want to use these two:And