osrm-client
Client library for Open Source Routing Machine - OSRM that uses the REST http API
that is exposed by osrm-routed
.
The interface is compatible with node-osrm. However it is not meant as
replacement for node-osrm
on the server.
Can be used with NodeJS and with browserify (through browser-request
).
Example
var OSRM = var osrm = "//router.project-osrm.org"; osrm; osrm; osrm; var query = coordinates: 5251993013438640 5251319113415852;osrm;
Testing
npm test
firefox test.html # Check the console if tape tests worked