-
-
Save sbis04/fcd45637b9d0f3f41c9d8517897bda82 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Calculating the distance between the start and the end positions | |
// with a straight path, without considering any route | |
double distanceInMeters = await Geolocator().distanceBetween( | |
startCoordinates.latitude, | |
startCoordinates.longitude, | |
destinationCoordinates.latitude, | |
destinationCoordinates.longitude, | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment