Search code examples
javaopenstreetmaposmdroid

How to get all latlng of Route between two points in OSM


I'm working on app using open street map. I have draw route between two points. I want to get list of all latitudes and longitudes on the route polyline. If anyone knows please answer me.


Solution

  • **Here is the answer just play with your polyline **

    Polyline roadOverlay = RoadManager.buildRoadOverlay(road1); roadOverlay.getPoints();