googleMapsDirectionsURL method

String googleMapsDirectionsURL(
  1. Geolocation destinationGeo
)

Generates a Google Maps Directions URL with coordinates.

Implementation

String googleMapsDirectionsURL(Geolocation destinationGeo) {
  return 'https://www.google.com/maps/dir/?api=1&origin=$_latitude,$longitude&destination=${destinationGeo.latitude},${destinationGeo.longitude}';
}