Closed Guangtong closed 8 years ago
Yes, it's a bit under documented. However, that package mostly is for internal use. Do you have something special in mind?
Maybe you are more looking for the GeoUtils class in the utils package? There you'll also find helper methods to convert km to pixels and vice versa. Specifically, check out GeoUtils.getDestinationLocation(originLocation, bearing, distanceInKm)
for your question.
For a full example to use that method for calculating km to pixels, see https://github.com/tillnagel/unfolding/blob/master/examples/de/fhpotsdam/unfolding/examples/geo/GetDistanceApp.java
You are so talented and willing to help! Thank you.
By the way, is there API that can transform km distance to pixels on the map? Thank you.