A collection of examples showing off the Mapbox Navigation SDK.
Installation with CocoaPods
git clone git@github.com:mapbox/navigation-ios-examples.git
cd navigation-ios-examples
pod install
open Navigation-Examples.xcworkspace/
- Sign up or log in to your Mapbox account and grab a Mapbox access token.
- Enter your Mapbox access token into the value of the
MGLMapboxAccessToken
key within the Info.plist file. Alternatively, if you plan to use this project as the basis for any open source application, read this guide to learn how to best protect your access tokens. - Run the application
- Add the example to
/Examples
. - Add the example name to the
Constants.swift
. - Run the app.
While we are not able to answer support questions in this repository, below are some helpful resources if you're just getting started with the Mapbox Navigation SDK for iOS: