RouteDetails class

///////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////

Constructors

RouteDetails.new({required List<RaliPosition> points, required double distance, required double duration, required List<NavigationStep> steps, required BoundingBox bounds, RouteEmphasis emphasis = RouteEmphasis.balanced, Map<String, dynamic>? trafficAnnotations, Map<String, double>? speedLimits, List<Hazard>? hazards, Map<String, List<Landmark>>? landmarks, List<WeatherAlert>? weatherAlerts})
//////////// ////////////
const
RouteDetails.fromMapboxRoute(Map<String, dynamic>? routeData)
//////////// //////////// Builds RouteDetails from Mapbox route data with robust parsing
factory

Properties

bounds → BoundingBox
final
distance → double
final
duration → double
final
emphasis → RouteEmphasis
final
hashCode → int
The hash code for this object.
no setterinherited
hazards → List<Hazard>?
final
landmarks → Map<String, List<Landmark>>?
final
points → List<RaliPosition>
//////////// ////////////
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
speedLimits → Map<String, double>?
final
steps → List<NavigationStep>
final
trafficAnnotations → Map<String, dynamic>?
final
weatherAlerts → List<WeatherAlert>?
final

Methods

copyWith({List<RaliPosition>? points, double? distance, double? duration, List<NavigationStep>? steps, BoundingBox? bounds, RouteEmphasis? emphasis, Map<String, dynamic>? trafficAnnotations, Map<String, double>? speedLimits, List<Hazard>? hazards, Map<String, List<Landmark>>? landmarks, List<WeatherAlert>? weatherAlerts}) → RouteDetails
Creates a copy of this route with modified properties
getDistanceInKilometers() → double
Calculates total route distance in kilometers
getEstimatedArrival() → DateTime
//////////// //////////// Provides estimated time of arrival
getNearbyHazards(RaliPosition point, double radiusMeters) → List<Hazard>
Gets nearby hazards within radius
getNearbyLandmarks(RaliPosition point, double radiusMeters) → Map<String, List<Landmark>>
Gets nearby landmarks within radius
getSpeedLimitAt(RaliPosition point) → double?
Gets the speed limit at a specific point if available
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