Skip to content Skip to sidebar Skip to footer

How To Calculate Distance Between Two Geopoints With Android Mapview

I want to know the distance of two points or the width and height distance of my current mapview in km unit. Is there any android map api to do that?

Solution 1:

This is not Map API, but the Android SDK's Location class has methods like

distanceBetween

and

distanceTo

Check them out here

Post a Comment for "How To Calculate Distance Between Two Geopoints With Android Mapview"