Skip to content

KirschbaumP/valhalla_routing_client

Repository files navigation

Valhalla Routing Client (unofficial)

Pub Version

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.

About

Dart Valhalla API (unoffical)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages