A bearing is the direction you’re facing, measured clockwise as an angle from true north on a compass. This can also be called a heading. In this system, north is
0°, east is
90°, south is
180°, and west is
270°. When you are viewing a Mapbox map, the bearing rotates the map around its center the specified number of degrees.
The bearing of a vehicle as it starts from a waypoint can also be set in the Directions API and the Optimization API using the optional
bearings parameter, and in the Mapbox Navigation SDKs for iOS and Android.
Mapbox GL JS:
- Mapbox Maps SDK for Android bearing documentation
- Mapbox Navigation for Android route generation documentation
- Mapbox Maps SDK for iOS bearing documentation
- Mapbox Navigation for iOS route generation documentation
Web services APIs: