RouteBuilderService class

Static utilities for route filtering and calculation.

All methods are static — no instantiation needed.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

buildNearestNeighborRoute(List<RoutePoint> points, LatLng startLocation) List<RoutePoint>
Orders points by proximity starting from startLocation using the nearest neighbor greedy algorithm.
computeBounds(List<RoutePoint> points, {LatLng? startPoint}) → LatLngBounds
Returns a LatLngBounds that covers all points.
computeInitialCamera(List<RoutePoint> points, {CameraPosition fallback = _fallbackPosition}) → CameraPosition
Returns a CameraPosition centered on points with an appropriate zoom level based on how spread out the points are.
filterInCircle(List<RoutePoint> points, LatLng center, double radiusMeters) List<RoutePoint>
Returns all points whose distance from center is within radiusMeters.
haversineDistance(LatLng a, LatLng b) double
Returns the haversine distance in metres between a and b.