The Mapbox Navigation SDK is comprised of two modules:
- MapboxCoreNavigation - responsible for rerouting, snapping, progress updates etc.
- MapboxNavigation - responsible for everything UI related.
If the UI provided by MapboxNavigation is not something that can work for your project, it is possible to create a custom navigation experience built on top of MapboxCoreNavigation directly. Note, this is not ideal as it will be a lot of work for the developer. If there is something missing from the UI or not optimal, feel free to open a ticket instead of venturing down this path.
The installation process is very similar to install MapboxNavigation:
To install Mapbox Core Navigation using CocoaPods:
-
Specify the following dependency in your Podfile:
pod 'MapboxCoreNavigation', '~> 0.27.0'
-
Run
pod install
and open the resulting Xcode workspace.
Note, you may need to run pod repo update
before pod install
if your Cocoapods sources haven't been updated in a while.
Alternatively, to install Mapbox Core Navigation using Carthage v0.19.0 or above:
-
Specify the following dependency in your Cartfile:
github "mapbox/mapbox-navigation-ios" ~> 0.27
-
Run
carthage update --platform iOS
to build just the iOS dependencies. -
Follow the rest of Carthage’s iOS integration instructions. Your application target’s Embedded Frameworks should include MapboxCoreNavigation.framework.