Skip to content

Commit

Permalink
added foot osrm and isochrone server
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroShkvorets committed Nov 10, 2018
1 parent 8918f3f commit d74afad
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion iso-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const config = {
sharedMemory: false,
units: defaults.units
}
config.osrmPaths = ['data/lts1/data.osrm', 'data/lts2/data.osrm', 'data/lts3/data.osrm', 'data/lts4/data.osrm']
config.osrmPaths = ['data/lts1/data.osrm', 'data/lts2/data.osrm', 'data/lts3/data.osrm', 'data/lts4/data.osrm', 'data/foot/data.osrm']

let path
try {
Expand Down
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@
}
],
"dependencies": {
"@turf/bbox": "^6.0.1",
"@turf/turf": "^5.1.6",
"isochrone": "^2.0.2",
"osrm": "5.19.0",
"log4js": "^2.5.3",
"minimist": "^1.2.0",
"log4js": "^2.5.3"
"osrm": "^5.19.0"
},
"repository":
{
"type": "git",
"url": "git://github.com/BikeOttawa/maps.bikeottawa.ca-backend.git"
}
"repository": {
"type": "git",
"url": "git://github.com/BikeOttawa/maps.bikeottawa.ca-backend.git"
}
}
3 changes: 2 additions & 1 deletion restart-maps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ OSRM=./node_modules/osrm/lib/binding/osrm-routed
echo "expecting OSRM to be in $OSRM"

if ! [ -x "$(command -v $OSRM)" ]; then
echo "Error: Missing OSRM. Install using 'npm install [email protected]'\n"
echo "Error: Missing OSRM. Install dependencies with 'npm install'\n"
exit 1
fi

Expand All @@ -19,5 +19,6 @@ $OSRM -p 5001 data/lts1/data.osrm &
$OSRM -p 5002 data/lts2/data.osrm &
$OSRM -p 5003 data/lts3/data.osrm &
$OSRM -p 5004 data/lts4/data.osrm &
$OSRM -p 5005 data/foot/data.osrm &

node iso-server.js &

0 comments on commit d74afad

Please sign in to comment.