Skip to content

Instantly share code, notes, and snippets.

@sbis04

sbis04/main.dart Secret

Created May 30, 2020 09:16
Show Gist options
  • Save sbis04/76dbe3ef7e25a4cecb5cdcf96d8f3209 to your computer and use it in GitHub Desktop.
Save sbis04/76dbe3ef7e25a4cecb5cdcf96d8f3209 to your computer and use it in GitHub Desktop.
// Getting the placemarks
List<Placemark> startPlacemark =
await _geolocator.placemarkFromAddress(_startAddress);
List<Placemark> destinationPlacemark =
await _geolocator.placemarkFromAddress(_destinationAddress);
// Retrieving coordinates
Position startCoordinates = startPlacemark[0].position;
Position destinationCoordinates = destinationPlacemark[0].position;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment