Skip to main content

valhalla_routing_client 0.0.2 copy "valhalla_routing_client: ^0.0.2" to clipboard
valhalla_routing_client: ^0.0.2 copied to clipboard

Dart Valhalla API Client

example/main.dart

import 'package:valhalla_routing_client/valhalla_routing_client.dart';

void main() async {
  RouteService routeService = RouteService(
    serverURL: 'https://valhalla1.openstreetmap.de',
  );

  final route = await routeService.routeVia(
    stops: [
      LatLng(lat: 48.137215, lng: 11.575628),
      LatLng(lat: 47.437963, lng: 11.271206),
    ],
  );

  print(route.trip.summary.length);
}
2
likes
140
points
22
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Dart Valhalla API Client

Repository (GitHub)
View/report issues

License

AGPL-3.0 (license)

Dependencies

dio

More

Packages that depend on valhalla_routing_client