How to calculate the distance between two GeoPoints with Android MapView

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

+3
source share
1 answer

This is not a map API, but the Android SDK placement class has methods such as

distanceBetween

and

distanceTo

Check them out here.

+5
source

Source: https://habr.com/ru/post/1750870/


All Articles