AbstractGeometry class
Structured representation of a junction or turn geometry.
AbstractGeometry models the intersection anchor, driving side and a list of AbstractGeometryItem instances that describe how lanes, arrows and other shapes are attached to the anchor. This structure is the machine-readable source used to render a schematic of the junction or to generate the abstract geometry image via TurnDetails.getAbstractGeometryImage.
Typical fields include the anchorType (point, circle or waypoint), the driveSide (left or right), a list of items, and optional counts for intermediate turns on the left/right side.
Consumers typically use the TurnDetails.abstractGeometryImg property to obtain a ready-to-render image of the entire geometry.
See also:
- TurnDetails.abstractGeometry - The parent turn details object.
- AbstractGeometryItem - Geometry elements attached to the anchor.
Constructors
-
AbstractGeometry({AnchorType anchorType = AnchorType.point, DriveSide driveSide = DriveSide.right, List<
AbstractGeometryItem> items = const <AbstractGeometryItem>[], int leftIntermediateTurns = 0, int rightIntermediateTurns = 0}) - Creates an AbstractGeometry instance.
-
AbstractGeometry.fromJson(Map<
String, dynamic> json) -
Deserializes a JSON-compatible map to create an instance.
factory
Properties
- anchorType ↔ AnchorType
-
Anchor type
getter/setter pair
- driveSide ↔ DriveSide
-
Drive side
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
items
↔ List<
AbstractGeometryItem> -
List of geometry items
getter/setter pair
- leftIntermediateTurns ↔ int
-
getter/setter pair
- rightIntermediateTurns ↔ int
-
getter/setter pair
- 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
-
toJson(
) → Map< String, dynamic> - Serializes this instance to a JSON-compatible map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited