RouteRequest constructor

RouteRequest({
  1. String version = 'v1',
  2. OsrmRequestProfile profile = OsrmRequestProfile.car,
  3. required List<OsrmCoordinate> coordinates,
  4. OsrmFormat format = OsrmFormat.json,
  5. OsrmParameters? parameters = const OsrmParameters(),
  6. OsrmAlternative alternatives = OsrmAlternative.false_,
  7. bool steps = false,
  8. OsrmAnnotation annotations = OsrmAnnotation.speed,
  9. OsrmGeometries geometries = OsrmGeometries.geojson,
  10. OsrmOverview overview = OsrmOverview.simplified,
  11. OsrmContinueStraight continueStraight = OsrmContinueStraight.false_,
  12. 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,
);