This project offers JavaScript clients and examples for the GraphHopper Directions API.
Try the live examples here.
Also see how we integrated the Routing and the Geocoding API to build a fully featured maps application called GraphHopper Maps
First step to play with the code is to get this repository:
git clone https://github.com/graphhopper/directions-api-js-client/
Now open index.html in your browser.
Currently all JavaScript clients require jQuery (tested with 2.1.0) and the small file GHUtil.js, both included in this repository.
You need the routing client.
There is also a different client developed from the community here.
You need the optimization client.
You need the matrix client.
You need the geocoding client.
Code stands under Apache License 2.0