Navigation Products Overview
Mapbox provides a full suite of products and services for adding navigation experiences and routing-related data to applications or data projects. These products include front-end navigation libraries and SDKs for web and mobile applications, as well as web services APIs for integration into any environment.
This guide covers common navigation UX patterns and use cases, and provides an overview of the Mapbox products and services that support them. Also included are links to documentation, code examples, and API playgrounds to help you get started with Mapbox navigation products.
Navigation UX Patterns
The following are the most common UX patterns using Mapbox navigation products:
Route Preview
Route preview is a common navigation pattern that shows a user the route they will take on a map before they start navigating. This pattern is often used in driving, walking, and cycling directions, and helps the user understand the route and make any necessary adjustments before starting navigation.
Route Previews are rendered using a response from the Directions API.
Interactive Navigation
Interactive navigation presents a user with a map and turn-by-turn directions as they navigate, making use of a mobile device's live location to guide them to their destination. This pattern is used in driving, walking, and cycling directions, and is often used in conjunction with voice guidance, traffic data, and other features to help users reach their destination.
Interactive Navigation is possible with the Navigation SDKs for iOS and Android, which are both powered by the Directions API.
Other Navigation Use Cases
Mapbox Navigation products and services support a wide range of use cases beyond the most common patterns listed above. Many of these are backend or data pipeline use cases that involve analyzing locations and routing in real-time.
Calculate Travel Time and Distance between Multiple Points
For scenarios such as a fleet of vehicles on the move that may need to visit multiple locations, it is important to calculate the travel time and distance between multiple points at one time. This can help optimize routes, plan for traffic, and make sure that vehicles arrive at their destinations on time.
To calculate travel time and distance between multiple points, use the Matrix API.
Spatial Joins with Time-Distance Isochrones
Spatial joins with time-distance isochrones are used to find all points within a certain travel time or distance of a given point. This can be useful for finding nearby points of interest, planning delivery routes, or analyzing the accessibility of a location.
To retrieve time-distance isochrones, us the Isochrone API.
Route Optimization (The Traveling Salesperson Problem)
Route optimization is used to find the most efficient route that visits a set of locations. This is a common problem in logistics, delivery, and transportation, and can help save time, fuel, and money by optimizing routes for multiple vehicles or deliveries.
To optimize routes, use the Optimization API.