distance_route 0.2.0 copy "distance_route: ^0.2.0" to clipboard
distance_route: ^0.2.0 copied to clipboard

A Flutter package for calculating and displaying routes with Google Maps.

0.2.0 #

  • Added snap-to-road: the driver marker is projected onto the nearest route segment so it rides on the road line instead of floating off it.
  • Added consuming route polyline: the traveled portion dims (grey) while the remaining route stays highlighted (blue), shrinking the line as the ride progresses.
  • Added offRouteThreshold parameter to configure the off-route distance (in meters, default 50) that triggers an automatic re-route.
  • More reliable auto re-routing: requires two consecutive off-route readings to avoid false triggers from GPS noise.
  • Smoother marker movement: the animation duration now matches the GPS update rate, with a single rebuild per frame.
  • Fixed competing location streams and a stacking compass listener that caused animation jank during rides.

0.1.4 #

  • Added bikeIconSize, pickupIconSize, and dropIconSize parameters for custom marker sizes.
  • Updated example and removed API key from the example for publishing.

0.1.3 #

  • Initial release with route drawing, bike animation, and real-time navigation features.
  • Fixed marker visibility during rides.
  • Improved smooth bearing calculations for bike movements.
  • Removed hardcoded API keys for security.

0.0.1 #

  • Initial project setup.
4
likes
140
points
340
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter package for calculating and displaying routes with Google Maps.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, flutter_compass, flutter_polyline_points, geolocator, google_maps_flutter, google_maps_flutter_platform_interface, http, keep_screen_on

More

Packages that depend on distance_route