RouteLabel
public struct RouteLabel : Hashable
The main street name or road number for a route. A route can contain more than one such street name or route number.
To include route labels in the route response, enable it using RouteOptions.enableRouteLabels.
-
The street name or route number for the route label.
Declaration
Swift
public var name: LocalizedText -
The type of the route label, describing if the route label contains a street name or a route number.
Declaration
Swift
public var type: RouteLabelType -
Creates a new instance.
Declaration
Swift
public init(name: LocalizedText, type: RouteLabelType = RouteLabelType.routeNumber)