From 55156834f92d235dbba9c9a2f6d888a2f8158bf2 Mon Sep 17 00:00:00 2001 From: udumft Date: Mon, 14 Dec 2020 22:49:52 +0300 Subject: [PATCH] vk-552-route-alerts: CHANGELOG updated, code docs added for RouteAlert.Alert --- CHANGELOG.md | 2 +- MapboxCoreNavigation/RouteAlert.swift | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2766fce9878..c9d230ad7d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ ### Packaging -* `MapboxNavigationNative` version bumped to v26.3, `MapboxCommon` updated to v9.1.0 and `MapboxDirections.swift` to v1.2 ([#2694](https://github.com/mapbox/mapbox-navigation-ios/pull/2694) +* Increased the minimum versions of `MapboxNavigationNative` to v26.3, `MapboxCommon` to v9.1.0 and `MapboxDirections` to v1.2. ([#2694](https://github.com/mapbox/mapbox-navigation-ios/pull/2694)) ### User interface diff --git a/MapboxCoreNavigation/RouteAlert.swift b/MapboxCoreNavigation/RouteAlert.swift index d812224a521..a72ac8b3690 100644 --- a/MapboxCoreNavigation/RouteAlert.swift +++ b/MapboxCoreNavigation/RouteAlert.swift @@ -7,12 +7,19 @@ import MapboxDirections `RouteAlert` encapsulates information about various incoming events. Common attributes like location, distance to the event, length and other is provided for each POI, while specific meta data is supplied via `alert` property. */ public struct RouteAlert { + /// Enumeration used for encapsulating additional details to describe specific type of alert public enum Alert { + /// Incident alert with details case incident(Incident) + /// Tunnel alert with details case tunnel(Tunnel) + /// Border alert crossing with details case borderCrossing(BorderCrossing) + /// Toll collect alert with details case tollCollection(TollCollection) + /// Service area alert with details case serviceArea(RestStop) + /// Restricted area alert case restrictedArea }