NearestOptions constructor

NearestOptions({
  1. String version = 'v1',
  2. OsrmRequestProfile profile = OsrmRequestProfile.car,
  3. required OsrmCoordinate coordinate,
  4. OsrmFormat format = OsrmFormat.json,
  5. OsrmParameters? parameters = const OsrmParameters(),
  6. int number = 1,
})

Implementation

NearestOptions({
  super.version,
  super.profile,
  required OsrmCoordinate coordinate,
  super.format,
  super.parameters,
  this.number = 1,
}) : super(
  service: OsrmService.nearest,
  coordinates: [coordinate],
  );