OsrmSource constructor

OsrmSource({
  1. Client? client,
  2. Uri serverBuilder(
    1. OsrmRequest options
    )?,
  3. Duration timeout = const Duration(seconds: 20),
})

OsrmSource constructor

Implementation

OsrmSource({
  Client? client,
  Uri Function(OsrmRequest options)? serverBuilder,
  this.timeout = const Duration(seconds: 20),
})  : serverBuilder = serverBuilder ?? OsrmServerBuilder.defaultBuild,
      client = client ?? Client();