Search code examples
androidskobbler-maps

Calculate Distance : How can we calculate distance between two SKCoordinate Points


Using the Skobbler map SDK, how can we calculate distance between two SKCoordinate Points. Thanks .


Solution

  • As part of the SKGeoUtils class, you will find the method calculateAirDistanceBetweenCoordinates(SKCoordinate pointA, SKCoordinate pointB)

    Which should do what you are looking for.

    Link to the doc. https://developer.skobbler.com/docs/android/com/skobbler/ngx/util/SKGeoUtils.html