valhalla_routing_client 0.0.3
valhalla_routing_client: ^0.0.3 copied to clipboard
Dart Valhalla API Client
Valhalla Routing Client (unofficial) #
An unofficial Dart wrapper for the Valhalla-APIs. Provides easy access to routing, matrix, isochrone, and other geospatial services for Dart and Flutter projects.
Note
This project is not affiliated with the official Valhalla project. It is a community-built implementation.
Warning
This package is still under development.
Features #
Supported:
- π Turn-By-Turn Route API (basic)
Planned:
- π Turn-By-Turn Route API
- π§ Optimized Route API
- β± Matrix API
- π Isochrone API
- π― Map Matching API
- π Locate API
- π Elevation API
- π§© Expansion API
- π Status API
- πΊοΈ Tile API
Installation #
Add this to your pubspec.yaml:
dependencies:
valhalla_routing_client: ^0.0.2
π Getting Started #
Routing #
final client = RouteService(
serverURL: 'https://valhalla1.openstreetmap.de', // Your Valhalla server
);
final route = await client.routeVia(
stops: [
LatLng(lat: 48.137215, lng: 11.575628),
LatLng(lat: 47.437963, lng: 11.271206),
],
);
print(route.trip.summary.length);
π€ Contributing #
Contributions are welcome!
- Report bugs
- Suggest features
- Submit pull requests
π License #
This project is released under the GNU AGPLv3.
See the LICENSE file for details.