osrm 0.0.6 copy "osrm: ^0.0.6" to clipboard
osrm: ^0.0.6 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

21
likes
0
points
332
downloads

Publisher

verified publisherphysia.dev

Weekly Downloads

Open Source Routing Machine (OSRM) client for Dart.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

async, http, recase

More

Packages that depend on osrm