-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Profile identifiers now bridges to Objective-C
- Loading branch information
Showing
7 changed files
with
84 additions
and
52 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
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,38 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
#pragma mark - Specifying the Routing Profile | ||
|
||
/** | ||
Options determining the primary mode of transportation for the routes. | ||
*/ | ||
typedef NSString * MBDirectionsProfileIdentifier NS_EXTENSIBLE_STRING_ENUM; | ||
|
||
/** | ||
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 MBDirectionsProfileIdentifier 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 MBDirectionsProfileIdentifier 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 MBDirectionsProfileIdentifier 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 MBDirectionsProfileIdentifier 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" | ||
|
||
|
||
MBDirectionsProfileIdentifier const MBDirectionsProfileIdentifierAutomobile = @"mapbox/driving"; | ||
MBDirectionsProfileIdentifier const MBDirectionsProfileIdentifierAutomobileAvoidingTraffic = @"mapbox/driving-traffic"; | ||
MBDirectionsProfileIdentifier const MBDirectionsProfileIdentifierCycling = @"mapbox/cycling"; | ||
MBDirectionsProfileIdentifier const MBDirectionsProfileIdentifierWalking = @"mapbox/walking"; |
Oops, something went wrong.