TrafficService class abstract
Traffic service. Adds support to update traffic information.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- persistentRoadblockListener ← PersistentRoadblockListener
-
Set persistent roadblocks listener
no getter
-
persistentRoadblocks
→ List<
TrafficEvent> -
Get all persistent user roadblocks
no setter
- preferences → TrafficPreferences
-
Gets access to the traffic service preferences.
no setter
- transferStatistics → TransferStatistics
-
Gets data transfer statistics for this service.
no setter
Static Methods
-
addAntiPersistentRoadblockByArea(
{required GeographicArea area, required DateTime startTime, required DateTime expireTime, required RouteTransportMode transportMode, required String id}) → Pair< TrafficEvent?, GemError> - Add an user persistent anti-area roadblock to collection
-
addPersistentRoadblockByArea(
{required GeographicArea area, required DateTime startTime, required DateTime expireTime, required RouteTransportMode transportMode, required String id}) → Pair< TrafficEvent?, GemError> - Add an user persistent roadblock to collection ( area impact zone type )
-
addPersistentRoadblockByCoordinates(
{required List< Coordinates> coords, required DateTime startTime, required DateTime expireTime, required RouteTransportMode transportMode, required String id}) → Pair<TrafficEvent?, GemError> - Add an user persistent roadblock to collection ( path impact zone type )
-
getOnlineServiceRestrictions(
Coordinates coords) → TrafficOnlineRestrictions - Gets the online traffic service restrictions for the given position
-
getPersistentRoadblock(
String id) → TrafficEvent? - Get an user persistent roadblock identified by id
-
getPersistentRoadblockPathPreview(
{required UserRoadblockPathPreviewCoordinate from, required Coordinates to, required RouteTransportMode transportMode}) → (List< Coordinates> , UserRoadblockPathPreviewCoordinate, GemError) - Get persistent roadblock path preview
-
removeAllPersistentRoadblocks(
) → GemError - Remove all user persistent roadblock
-
removePersistentRoadblockByCoordinates(
Coordinates coords) → GemError - Remove an user persistent roadblock identified by a reference coordinate ( for path impact zone type )
-
removePersistentRoadblockById(
String id) → GemError - Remove an user persistent roadblock identified by id
-
removeUserRoadblock(
TrafficEvent event) → GemError - Remove an user roadblock ( persistent or non-persistent )