SegmentData class abstract
Contains the requested information for a segment
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors.
Related APIs may change for new releases without a deprecation process.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- lengthInMeters → int
-
The length of this segment in meters. This information is based on map data.
It can differ from the length of SegmentData.polyline due to
approximations of the polyline.
Gets the length of this segment in meters.
no setter
- ocmSegmentId → OCMSegmentId
-
The OCMSegmentId object representing the segment
Gets the OCMSegmentId object representing the the segment.
no setter
- polyline → GeoPolyline
-
The GeoPolyline object representing the polyline of this segment.
Gets the GeoPolyline object representing the polyline of this segment.
no setter
-
railwayCrossings
→ List<
RailwayCrossing> ? -
The list of RailwayCrossing of the given segment.
Returns an empty list if no data is found.
Returns
nullif SegmentDataLoaderOptions.loadRailwayCrossings is set tofalse. Gets the list of RailwayCrossing.no setter -
roadSigns
→ List<
RoadSign> ? -
The list of RoadSign of the given segment.
Returns
nullif SegmentDataLoaderOptions.loadRoadSigns is set tofalse. Gets the list of RoadSign.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- segmentReference → SegmentReference
-
The SegmentReference object representing the segment
Gets the SegmentReference object representing the the segment.
no setter
-
spans
→ List<
SegmentSpanData> -
The list of SegmentSpanData of the given segment for the
requested attributes
Note: If no span attributes is requested, the list will be empty.
Gets the list of SegmentSpanData.
no setter
-
tollPoints
→ List<
TollPoint> ? -
The list of TollPoint of the given segment.
Returns an empty list if no data is found.
Returns
nullif SegmentDataLoaderOptions.loadTollPoints is set tofalseor the SegmentData is not initialized using SegmentDataLoader.loadDirectedSegmentData. Gets the list of TollPoint.no setter -
trafficSignals
→ List<
TrafficSignal> ? -
The list of TrafficSignal of the given segment.
Returns an empty list if no data is found.
Returns
nullif SegmentDataLoaderOptions.loadTrafficSignals is set tofalse. The TrafficSignalLocation indicates the location of a single traffic signal, which can be any combination of left, right and overhead. The TrafficSignal.offsetInMeters is the location along the segment, while the traffic signal location have details on how the traffic signal is display/deploy in that specific location in the segment. Gets the list of TrafficSignal.no setter
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