RoadEventManager
Объект для создания транспортных событий.
Hashable
public static func == (lhs: RoadEventManager, rhs: RoadEventManager) -> Bool
Returns a Boolean value indicating whether two values are equal.
This documentation comment was inherited from .
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by feeding them into the given hasher.
This documentation comment was inherited from .
hasher
Hasher
The hasher to use when combining the components of this instance.
public static func instance(
context: Context
) -> RoadEventManager
Получение объекта для создания дорожных событий.
public func createAccident(
location: GeoPoint,
lanes: LaneOptionSet,
description: String
) -> Future<AddEventResult>
Создание события “ДТП”.
location
GeoPoint
Местоположение события.
lanes
LaneOptionSet
Полосы дороги, затрагиваемые событием.
description
String
Пользовательское описание события.
Future<>
public func createCamera(
location: GeoPoint,
description: String
) -> Future<AddEventResult>
Создание события “Камера”.
public func createRoadRestriction(
location: GeoPoint,
description: String
) -> Future<AddEventResult>
Создание события “Перекрытие дорожного движения”.
public func createComment(
location: GeoPoint,
description: String
) -> Future<AddEventResult>
Создание события “Комментарий”.
public func createOther(
location: GeoPoint,
lanes: LaneOptionSet,
description: String
) -> Future<AddEventResult>
Создание события “Другое”.
location
GeoPoint
Местоположение события.
lanes
LaneOptionSet
Полосы дороги, затрагиваемые событием.
description
String
Пользовательское описание события.
Future<>
public func createRoadWorks(
location: GeoPoint,
lanes: LaneOptionSet,
description: String
) -> Future<AddEventResult>
Создание события “Дорожные работы”.
location
GeoPoint
Местоположение события.
lanes
LaneOptionSet
Полосы дороги, затрагиваемые событием.
description
String
Пользовательское описание события.
Future<>