RouteSegment class Core
Route segment class
This class should not be instantiated directly. Instead, use the Route.segments
getter to obtain a list of instances.
Constructors
- RouteSegment.init(int id, int mapId)
Properties
- geographicArea → RectangleGeographicArea
-
Get geographic area of the route
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- incursCosts → bool
-
Method to check if traveling the route or route segment incurs cost to the user.
no setterinherited
-
instructions
→ List<
RouteInstruction> -
Get route instructions list.
no setterinherited
- isCommon → bool
-
Check if this segment is of common type.
no setterinherited
- mapId → int
-
no setterinherited
- pointerId → int
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- summary → String
-
Get summary of the route segment.
no setterinherited
- timeDistance → TimeDistance
-
Get length in meters and estimated travel time in seconds for the route / route segment.
no setterinherited
-
waypoints
→ List<
Landmark> -
Get the list containing segment start and end waypoints.
no setterinherited
Methods
-
dispose(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerAutoReleaseObject(
int pointerId) → void -
Registers an object for auto release.
inherited
-
toEVRouteSegment(
) → EVRouteSegment - Convert to a EVRouteSegment from this one.
-
toPTRouteSegment(
) → PTRouteSegment - Convert to a PTRouteSegment from this one.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited