See: https://github.com/Project-OSRM/osrm-backend/wiki/Building-OSRM Then: https://github.com/Project-OSRM/osrm-backend/wiki/Running-OSRM
Download maps from: http://download.geofabrik.de/
Tested on Bash on Ubuntu on Windows. Works perfectly.
The OSRM_helper package contains the Route class which takes care of:
- Calling the API through the server
- Storing the result in a more user-friendly format
- Allowing the drawing fo the route on an interactive map directly with the method show()