generatePath method

String generatePath(
  1. String server,
  2. String waypoints, {
  3. Profile profile = Profile.route,
  4. RoadType roadType = RoadType.car,
  5. bool steps = true,
  6. Overview overview = Overview.full,
  7. Geometries geometries = Geometries.polyline,
})
inherited

Implementation

String generatePath(
  String server,
  String waypoints, {
  Profile profile = Profile.route,
  RoadType roadType = RoadType.car,
  bool steps = true,
  Overview overview = Overview.full,
  Geometries geometries = Geometries.polyline,
}) {
  String url =
      "$server/routed-${roadType.name}/${profile.name}/v1/driving/$waypoints";
  var option = "";
  option += "steps=$steps&";
  option += "overview=${overview.value}&";
  option += "geometries=${geometries.value}";
  return "$url?$option";
}