Maps
class Maps
Utility methods for computing distances, bearings, and destinations among geographic positions.
Functions
Link copied to clipboard
open fun getDestinationLocation(start: GeoPosition, initialBearing: Double, dist: Double): LatLongPosition
Computes the destination reached moving from the start position with the given bearing for the given distance.
open fun getDestinationLocation(start: GeoPosition, end: GeoPosition, dist: Double): LatLongPosition
Computes the destination reached moving from the start position towards the end position for the given distance.
Link copied to clipboard
Returns the distance in meters.
Link copied to clipboard
Computes the initial bearing from the start position towards the end position.
Link copied to clipboard
Converts GeoPosition to LatLng.
Link copied to clipboard
Converts LatLng to LatLongPosition.