Suppose i have:
GeoPoint p = new GeoPoint(10.08, 11.09); //(lat, long)
and a Polyline (a sequence of Geopoints)
ArrayList<GeoPoint> waypoints = new ArrayList<>()
waypoints.add(new GeoPoint(20.90, 20.80);
waypoints.add(new GeoPoint(30.90, 30.80);
...
...
How can i calculate the distance between p and the Polyline? I'm using Osmodroid https://github.com/osmdroid/osmdroid
After further improving my former post... this is good enough to not need an package method :) ;) good night
the GeoPoint is from the osmdroid package