Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Profile identifier now bridges to Objective-C
- Loading branch information
Showing
5 changed files
with
60 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
|
||
/** | ||
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. | ||
*/ | ||
extern NSString *const MBDirectionsProfileIdentifierAutomobile; | ||
|
||
/** | ||
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. | ||
- experiment: This profile is experimental. Where traffic data is absent, this profile prefers high-speed roads like highways, similar to `MBDirectionsProfileIdentifierAutomobile`. | ||
*/ | ||
extern NSString *const MBDirectionsProfileIdentifierAutomobileAvoidingTraffic; | ||
|
||
/** | ||
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. | ||
*/ | ||
extern NSString *const MBDirectionsProfileIdentifierCycling; | ||
|
||
/** | ||
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. | ||
*/ | ||
extern NSString *const MBDirectionsProfileIdentifierWalking; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#import "MBRouteOptions.h" | ||
|
||
|
||
NSString *const MBDirectionsProfileIdentifierAutomobile = @"mapbox/driving"; | ||
NSString *const MBDirectionsProfileIdentifierAutomobileAvoidingTraffic = @"mapbox/driving-traffic"; | ||
NSString *const MBDirectionsProfileIdentifierCycling = @"mapbox/cycling"; | ||
NSString *const MBDirectionsProfileIdentifierWalking = @"mapbox/walking"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters