osrm 0.0.7 copy "osrm: ^0.0.7" to clipboard
osrm: ^0.0.7 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
130
points
332
downloads
screenshot

Publisher

verified publisherphysia.dev

Weekly Downloads

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