OsrmIntersection class

OsrmIntersection class for a intersection

Inheritance

Constructors

OsrmIntersection({OsrmCoordinate? location, List<num>? bearings, List<bool>? entry, num? in_, num? out, List<OsrmLane>? lanes})
OsrmIntersection.fromMap(Map<String, dynamic> json)
fromMap method to get the OsrmIntersection from a json map
factory

Properties

bearings List<num>?
bearings A list of bearing values (e.g. 0,90,180,270) that are available at the intersection.
final
entry List<bool>?
entry A list of entry flags, corresponding in a 1:1 relationship to the bearings.
final
hashCode int
The hash code for this object.
no setterinherited
in_ num?
in Index into bearings/entry array. Used to calculate the bearing just before the turn. Namely, the clockwise angle from true north to the direction of travel immediately before the maneuver/passing the intersection. To get the bearing in the direction of driving, the bearing has to be rotated by a value of 180. The value is not supplied for depart maneuvers.
final
lanes List<OsrmLane>?
lanes Array of Lane objects that represent the available turn lanes at the intersection. If no lane information is available for an intersection, the lanes property will not be present.
final
location OsrmCoordinate?
location A OsrmCoordinate object representing the location of the turn.
final
out num?
out Index into the bearings/entry array. Used to extract the bearing just after the turn. Namely, The clockwise angle from true north to the direction of travel immediately after the maneuver/passing the intersection. The value is not supplied for arrive maneuvers.
final
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
toMap() Map<String, dynamic>
toMap method to get the OsrmIntersection as a json map
override
toString() String
A string representation of this object.
inherited

Operators

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