generatePath method
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,
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";
}