osrm 0.0.8 copy "osrm: ^0.0.8" to clipboard
osrm: ^0.0.8 copied to clipboard

Open Source Routing Machine (OSRM) client for Dart.

example/README.md

Examples #

for simple use:

import 'package:osrm/osrm.dart';

void main() async {
  final osrm = Osrm();

  final options =  RouteRequest(
    coordinates: [
      (2.829099,36.479960),
      (2.825987,36.473662),
    ],
  );

  final route = await osrm.route(options);
  
  print(route);
}

here you can find another example with dart: #

example.dart

here you can find another example with flutter: #

flutter map example

image

20
likes
140
pub points
84%
popularity
screenshot

Publisher

verified publisherphysia.dev

Open Source Routing Machine (OSRM) client for Dart.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

async, http, recase

More

Packages that depend on osrm