NearestOptions constructor
NearestOptions({
- String version = 'v1',
- OsrmRequestProfile profile = OsrmRequestProfile.car,
- required OsrmCoordinate coordinate,
- OsrmFormat format = OsrmFormat.json,
- OsrmParameters? parameters = const OsrmParameters(),
- 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],
);