Skip to content

thanosbellos/mapbox-directions.js

 
 

Repository files navigation

mapbox-directions.js

Build Status

This is a Mapbox.js plugin for the Mapbox Directions API. Its main features include:

  • Input controls for origin and destination
  • Draggable origin and destination markers
  • Draggable intermediate waypoints
  • Display of turn-by-turn instructions
  • Selection of alternate routes

Managed as Markdown in API.md, following the standards in DOCUMENTING.md

Building

Requires node.js installed on your system.

git clone https://github.com/mapbox/mapbox-directions.js.git
cd mapbox-directions.js
npm install
make

This project uses browserify to combine dependencies and installs a local copy when you run npm install. make will build the project in dist/.

Tests

Test with phantomjs:

npm test

To test in a browser, run a local development server and go to /test.

Packages

No packages published

Languages

  • JavaScript 75.7%
  • HTML 15.1%
  • CSS 8.5%
  • Makefile 0.7%