generateTripPath method
String
generateTripPath(
- String server,
- String waypoints, {
- RoadType roadType = RoadType.car,
- bool roundTrip = true,
- SourceGeoPointOption source = SourceGeoPointOption.any,
- DestinationGeoPointOption destination = DestinationGeoPointOption.any,
- bool steps = true,
- Overview overview = Overview.full,
- Geometries geometries = Geometries.polyline,
inherited
Implementation
String generateTripPath(
String server,
String waypoints, {
RoadType roadType = RoadType.car,
bool roundTrip = true,
SourceGeoPointOption source = SourceGeoPointOption.any,
DestinationGeoPointOption destination = DestinationGeoPointOption.any,
bool steps = true,
Overview overview = Overview.full,
Geometries geometries = Geometries.polyline,
}) {
String baseGeneratedUrl = generatePath(
server,
waypoints,
roadType: roadType,
steps: steps,
overview: overview,
profile: Profile.trip,
geometries: geometries,
);
return "$baseGeneratedUrl&source=${source.name}&destination=${destination.name}&roundtrip=$roundTrip";
}