Skip to content

DrewRay/osrm-isochrone-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

osrm-isochrone-server

Add a nodejs webserver in front of osrm-isochrone. Expose isochrone computed by OSRM to HTTP.

##Install

npm install

##Run

node server.js --osrm path-to-osrm-file --port 1723

or using a shared-memory OSRM pre-loaded data

node server.js --port 1723

##API KISS:

  • /0.1/isochrone?lat=LAT&lng=LNG&time=TIME

TIME is in second.

##Config The server uses node-config to set some inputs. An example of json config file (where maxspeed is in km/h, resolution is the number/density of points used in grid for isochrone):

{
  "resolution": 75,
  "maxMatrixSize": 1000000,
  "maxspeed": 104,
  "precisionFloat": 5
}

The config directory can be specified thanks to node-config: https://github.com/lorenwest/node-config/wiki/Environment-Variables#node_config_dir

About

Add a nodejs webserver in front of osrm-isochrone

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Lua 92.3%
  • JavaScript 7.7%