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
pointsby proximity starting fromstartLocationusing the nearest neighbor greedy algorithm. -
computeBounds(
List< RoutePoint> points, {LatLng? startPoint}) → LatLngBounds -
Returns a
LatLngBoundsthat covers allpoints. -
computeInitialCamera(
List< RoutePoint> points, {CameraPosition fallback = _fallbackPosition}) → CameraPosition -
Returns a
CameraPositioncentered onpointswith an appropriate zoom level based on how spread out the points are. -
filterInCircle(
List< RoutePoint> points, LatLng center, double radiusMeters) → List<RoutePoint> -
Returns all
pointswhose distance fromcenteris withinradiusMeters. -
haversineDistance(
LatLng a, LatLng b) → double -
Returns the haversine distance in metres between
aandb.