calculateRemainingDistanceInMeters abstract method

int? calculateRemainingDistanceInMeters(
  1. GeoCoordinates coordinates
)

This method calculates the distance between the current position and given coordinates.

The coordinates must be on the polyline.

  • coordinates The geographic coordinates of the location.

Returns int?. distance in meters or null if given coordinates are not on route or given coordinates were already traversed.

Implementation

int? calculateRemainingDistanceInMeters(GeoCoordinates coordinates);