destination abstract method

LatLng destination(
  1. double distance,
  2. double bearing, {
  3. DistanceAlgorithmType algorithm = DistanceAlgorithmType.Haversine,
})

Calculate LatLng destination with distance and bearing from current center of the map.

distance distance to be used to calculate LatLang destination bearing bearing to be used to calculate LatLang destination algorithm calculation algorithm to be used. Available values DistanceAlgorithmType.Haversine and DistanceAlgorithmType.Vincenty

        Default [DistanceAlgorithmType.Haversine]

Implementation

LatLng destination(
  double distance,
  double bearing, {
  DistanceAlgorithmType algorithm = DistanceAlgorithmType.Haversine,
});