Initialize the SDK
Navigation applications require many types of data that are constantly updated to provide information to the user. To being accessing this data you need to initialize the Navigation SDK and start a trip session. Then, you can use this data to power two kinds of navigation experiences: passive navigation (also known as free-drive mode) or active guidance (or turn-by-turn navigation).
Initialize the Navigation SDK
There are two steps you need to complete to initialize the Navigation SDK and begin receiving data:
- Create a
MapboxNavigation
object, which is the entry point for interacting with the Navigation SDK. - Start a trip session, which allows you to start consuming and processing data.