# mapbox-gl-directions **Repository Path**: mirrors_mapbox/mapbox-gl-directions ## Basic Information - **Project Name**: mapbox-gl-directions - **Description**: Directions plugin for mapbox-gl-js using Mapbox Directions API. - **Primary Language**: Unknown - **License**: ISC - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2025-11-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Mapbox GL Directions --- A full featured directions plugin for [Mapbox GL JS](https://github.com/mapbox/mapbox-gl-js) using the [Mapbox Directions API](https://www.mapbox.com/directions/). Quickly add UI to display driving, cycling, or walking directions on the map. For directions functionality in native mobile and desktop applications, see [Mapbox Android Services](https://github.com/mapbox/mapbox-java/), [MapboxDirections.swift](https://github.com/mapbox/MapboxDirections.swift/), and [MapboxNavigation.swift](https://github.com/mapbox/MapboxNavigation.swift/). ### Usage ```javascript var mapboxgl = require('mapbox-gl'); var MapboxDirections = require('@mapbox/mapbox-gl-directions'); var directions = new MapboxDirections({ accessToken: 'YOUR-MAPBOX-ACCESS-TOKEN', unit: 'metric', profile: 'mapbox/cycling' }); var map = new mapboxgl.Map({ container: 'map' }); map.addControl(directions, 'top-left'); ``` Live example: https://www.mapbox.com/mapbox-gl-js/example/mapbox-gl-directions/ ### Deeper dive See [API.md](https://github.com/mapbox/mapbox-gl-directions/blob/master/API.md) for complete reference. ### Contributing See [CONTRIBUTING.md](https://github.com/mapbox/mapbox-gl-directions/blob/master/CONTRIBUTING.md).