trip_routing 0.0.5 copy "trip_routing: ^0.0.5" to clipboard
trip_routing: ^0.0.5 copied to clipboard

Flutter on-device trip-routing calculator package for multiple waypoints, optimized for pedestrian navigation.

Routing Trip Planner #

Flutter on-device trip-routing calculator package for multiple waypoints, optimized for pedestrian navigation. This package uses overpass api to fetch all ways inside bounding box of your waypoints and provides a detailed polyline route containing a list of LatLng points.

Getting started #

Add this to your package's pubspec.yaml file:

dependencies:
  trip_routing: ^0.0.5

Example #

final waypoints = [
    const LatLng(50.77437074991441, 6.075419266272186),
    const LatLng(50.778183576682636, 6.088382934817764)
];

final routing = TripService();
try {
    final trip = await routing.findTotalTrip(waypoints, preferWalkingPaths: true);
    print('Calculated route: ${trip.route}');
    print('Distance: ${trip.distance} meters');
    print('Errors: ${trip.errors}');
} catch (e) {
    print('Error calculating route: $e');
}

Find the flutter package at https://pub.dev/packages/trip_routing

Find the code repo at https://github.com/ThoreKoritzius/trip-route-calculator

1
likes
0
points
14
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter on-device trip-routing calculator package for multiple waypoints, optimized for pedestrian navigation.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection, flutter, http, latlong2

More

Packages that depend on trip_routing