DirectionsProfileIdentifier
public struct DirectionsProfileIdentifier : Codable, Hashable, RawRepresentable
                Options determining the primary mode of transportation for the routes.
- 
                  
                  
Declaration
Swift
public init(rawValue: String) - 
                  
                  
Declaration
Swift
public var rawValue: String - 
                  
                  
The returned directions are appropriate for driving or riding a car, truck, or motorcycle.
This profile prioritizes fast routes by preferring high-speed roads like highways. A driving route may use a ferry where necessary.
Declaration
Swift
public static let automobile: DirectionsProfileIdentifier - 
                  
                  
The returned directions are appropriate for driving or riding a car, truck, or motorcycle.
This profile avoids traffic congestion based on current traffic data. A driving route may use a ferry where necessary.
Traffic data is available in a number of countries and territories worldwide. Where traffic data is unavailable, this profile prefers high-speed roads like highways, similar to
DirectionsProfileIdentifier.Automobile.Declaration
Swift
public static let automobileAvoidingTraffic: DirectionsProfileIdentifier - 
                  
                  
The returned directions are appropriate for riding a bicycle.
This profile prioritizes short, safe routes by avoiding highways and preferring cycling infrastructure, such as bike lanes on surface streets. A cycling route may, where necessary, use other modes of transportation, such as ferries or trains, or require dismounting the bicycle for a distance.
Declaration
Swift
public static let cycling: DirectionsProfileIdentifier - 
                  
                  
The returned directions are appropriate for walking or hiking.
This profile prioritizes short routes, making use of sidewalks and trails where available. A walking route may use other modes of transportation, such as ferries or trains, where necessary.
Declaration
Swift
public static let walking: DirectionsProfileIdentifier 
              Install in Dash
            
        DirectionsProfileIdentifier Structure Reference