generateTripPath method

String generateTripPath(
  1. String server,
  2. String waypoints, {
  3. RoadType roadType = RoadType.car,
  4. bool roundTrip = true,
  5. SourceGeoPointOption source = SourceGeoPointOption.any,
  6. DestinationGeoPointOption destination = DestinationGeoPointOption.any,
  7. bool steps = true,
  8. Overview overview = Overview.full,
  9. 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";
}