RoadEventManager
Object for creating transport events.
Extends:
ru.dgis.sdk.NativeObject
RoadEventManager(context: Context)
Getting an object for creating traffic events.
Parameters
Methods
fun createAccident(
location: GeoPoint,
lanes: EnumSet<Lane>,
description: String
): Future<AddEventResult>
Creating an event "Accident".
Parameters
location
GeoPoint
Event location.
lanes
EnumSet<Lane>
Lanes of the road affected by the event.
description
String
Custom event description.
Returns
fun createCamera(location: GeoPoint, description: String): Future<AddEventResult>
Creating a "Camera" event.
Parameters
fun createRoadRestriction(location: GeoPoint, description: String): Future<AddEventResult>
Creating a "Road closure" event.
Parameters
fun createComment(location: GeoPoint, description: String): Future<AddEventResult>
Creating a "Comment" event.
Parameters
fun createOther(
location: GeoPoint,
lanes: EnumSet<Lane>,
description: String
): Future<AddEventResult>
Create an "Other" event.
Parameters
location
GeoPoint
event location.
lanes
EnumSet<Lane>
Lanes of the road affected by the event.
description
String
Custom event description.
Returns
fun createRoadWorks(
location: GeoPoint,
lanes: EnumSet<Lane>,
description: String
): Future<AddEventResult>
Creating a "Road works" event.
Parameters
location
GeoPoint
Event location.
lanes
EnumSet<Lane>
Lanes of the road affected by the event.
description
String
Custom event description.
Returns