getRouteBetweenCoordinates method
Future<PolylineResult>
getRouteBetweenCoordinates(
- String googleApiKey,
- PointLatLng origin,
- PointLatLng destination, {
- TravelMode travelMode = TravelMode.driving,
- List<
PolylineWayPoint> wayPoints = const [], - bool avoidHighways = false,
- bool avoidTolls = false,
- bool avoidFerries = true,
- bool optimizeWaypoints = false,
Get the list of coordinates between two geographical positions which can be used to draw polyline between this two positions
Implementation
Future<PolylineResult> getRouteBetweenCoordinates(
String googleApiKey, PointLatLng origin, PointLatLng destination,
{TravelMode travelMode = TravelMode.driving,
List<PolylineWayPoint> wayPoints = const [],
bool avoidHighways = false,
bool avoidTolls = false,
bool avoidFerries = true,
bool optimizeWaypoints = false}) async {
return await util.getRouteBetweenCoordinates(
googleApiKey,
origin,
destination,
travelMode,
wayPoints,
avoidHighways,
avoidTolls,
avoidFerries,
optimizeWaypoints);
}