Maneuver
public class Maneuver
extension Maneuver: NativeBase
extension Maneuver: Hashable
This class provides all the information for a maneuver. The directional information (e.g. road names, road
numbers and signpost direction) is stored in Maneuver.roadTexts and Maneuver.nextRoadTexts attributes.
As for the motorway exit information, it can be obtained from Maneuver.exitSignTexts attribute.
-
Indicates the maneuver action.
Declaration
Swift
public var action: ManeuverAction { get } -
Geographic coordinates where the maneuver is located.
Declaration
Swift
public var coordinates: GeoCoordinates { get } -
Index over
Section.geometrywhere the maneuver is located.Declaration
Swift
public var offset: Int32 { get } -
The country code of the maneuver position. The value is
nilwhen no data is available.Declaration
Swift
public var countryCode: String? { get } -
The textual attributes of the exit sign. These might contain exit number(s) and/or name(s). These attributes are only available for the Navigate license. Otherwise, the attributes are always empty.
Declaration
Swift
public var exitSignTexts: LocalizedTexts { get } -
The length of the maneuver in meters.
Declaration
Swift
public var lengthInMeters: Int32 { get } -
The textual attributes of the current road containing road names, road numbers and signpost direction (towards) information. Note: These attributes are only available for the Navigate license. Otherwise, the attributes are always empty.
Declaration
Swift
public var roadTexts: RoadTexts { get } -
The textual attributes of the next road containing the corresponding road name(s) and road number(s) after the maneuver point. These attributes are only available for the Navigate license. Otherwise, the attributes are always empty.
Declaration
Swift
public var nextRoadTexts: RoadTexts { get } -
The textual attributes of the intersection. These attributes are only available for the Navigate license. Otherwise, the attributes are always empty. Note: Routes calculated with OfflineRoutingEngine are not supported.
Declaration
Swift
public var intersectionNames: LocalizedTexts { get } -
The maneuver instruction. The text is formatted and localized as specified via
RouteTextOptions. Note for users of the Navigate license: This text is meant to be displayed in a preview context, whereas real-timeEventTextListenertexts are meant to be used for spoken voice announcements during a trip.Declaration
Swift
public var text: String { get } -
Index over
Route.sectionsindicating the section to which the maneuver belongs to.Declaration
Swift
public var sectionIndex: Int32 { get } -
Index over
Section.spansindicating the first span after the maneuver point. Note: The span index for the last maneuvers (those maneuvers with maneuver action set toManeuverAction.arrive) cannot be used, since these maneuvers are placed after the last span of the route and the span index for them would be greater than the span list size.Declaration
Swift
public var spanIndex: Int32 { get } -
The estimated time in seconds needed to perform the maneuver.
Declaration
Swift
public var duration: TimeInterval { get } -
The angle of the turn component of the maneuver. The angle increases clockwise and small values are used for going straight, i.e. a positive number means there is a right turn and a negative number is a left turn. Some maneuvers like Depart, Arrive and Roundabout pass doesn’t have a well defined angle, so the value is omitted. Note: These attributes are only available for the Navigate license.
Declaration
Swift
public var turnAngleInDegrees: Double? { get } -
The angle is estimated between the incoming and outgoing route parts before entering the actual roundabout. This is done to provide a better orientation for drivers. For better results, the incoming and outcoming route parts can be around 50 meters in length. In addition, these parts lie usually around 30 meters away from the actual roundabout. Therefore, the resulting arc does not necessarily represent the exact curved path a vehicle has to follow within a roundabout from the point of entry to the point of exit. Instead, it reflects the route path before and after the roundabout to highlight the directional change along the route. The angle can have a value from -360.0 to 360.0, and it is positive in right-hand side driving country, and negative in left-hand side countries. Note that the value is available for both the enter roundabout actions and the exit roundabout actions. Both maneuvers have the same value. When the incoming or outgoing route parts are curvy or when the roundabout itself is not representing a perfect circle, then the accuracy of the angle may be compromised. Note: These attributes are only available for the Navigate license.
Declaration
Swift
public var roundaboutAngleInDegrees: Double? { get }