RoadEventManager
Object for creating traffic events.
Extends:
ru.dgis.sdk.NativeObject
RoadEventManager(context: Context)
Gets an object for creating traffic events.
Parameters
Methods
fun createAccident(
location: GeoPoint,
lanes: EnumSet<Lane>,
description: String
): Future<AddEventResult>
Creates an "Accident" event.
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>
Creates a "Camera" event.
Parameters
fun createRoadRestriction(location: GeoPoint, description: String): Future<AddEventResult>
Creates a "Road closure" event.
Parameters
fun createComment(location: GeoPoint, description: String): Future<AddEventResult>
Creates a "Comment" event.
Parameters
fun createOther(
location: GeoPoint,
lanes: EnumSet<Lane>,
description: String
): Future<AddEventResult>
Creates 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>
Creates 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