RouteRequest constructor
RouteRequest({
- String version = 'v1',
- OsrmRequestProfile profile = OsrmRequestProfile.car,
- required List<
OsrmCoordinate> coordinates, - OsrmFormat format = OsrmFormat.json,
- OsrmParameters? parameters = const OsrmParameters(),
- OsrmAlternative alternatives = OsrmAlternative.false_,
- bool steps = false,
- OsrmAnnotation annotations = OsrmAnnotation.speed,
- OsrmGeometries geometries = OsrmGeometries.geojson,
- OsrmOverview overview = OsrmOverview.simplified,
- OsrmContinueStraight continueStraight = OsrmContinueStraight.false_,
- List<
OsrmWaypoint> waypoints = const [],
Implementation
RouteRequest({
super.version,
super.profile,
/// List lat-lng
required super.coordinates,
super.format,
super.parameters,
this.alternatives = OsrmAlternative.false_,
this.steps = false,
this.annotations = OsrmAnnotation.speed,
this.geometries = OsrmGeometries.geojson,
this.overview = OsrmOverview.simplified,
this.continueStraight = OsrmContinueStraight.false_,
this.waypoints = const [],
}) : super(
service: OsrmService.route,
);