Open Dirk23 opened 7 years ago
osrm-prepare
was changed to osrm-contract
property '24'
error, make sure your location
variable in your index.js is inside your osrm network. Perhaps you've mixed up long/lat or just forgot to change it to your own coordinatesSeems the documentation is terrible. I can't seem to find a description explaining what resolution should be or what units it's expressed as. Sigh
as for property '24' error, make sure your location variable in your index.js is inside your osrm network. Perhaps you've mixed up long/lat or just forgot to change it to your own coordinates
Indeed.
It looks like
self.draw(destinations);
will produce that error if there are no 'destinations', i.e. outputs from the GeoJSON, which happens if the line
var location = [-77.02926635742188,38.90011780426885];
is not changed to your own lng,lat pair representing a location within the network area of your data.
I can't seem to find a description explaining what resolution should be or what units it's expressed as.
The value is passed to the turf-isolines
module here:
https://github.com/Turfjs/turf/blob/v3.5.2/packages/turf-isolines/index.js#L20
where the parameter is defined as:
"Resolution of the underlying grid"
Perhaps the example there will be of help.
The path to the files:
/node_modules/osrm-isochrone/osrm/lib/binding/osrm-extract
/node_modules/osrm-isochrone/osrm/lib/binding/osrm-prepare
are wrong and do not exist. I found similar files in:/node_modules/osrm/lib/binding
but i cant find the
osrm-prepare
file!I have a osrm file (and many other files from the OSRM Project. I changed the Path to the OSRM File in your Demofile. When i try to run the demo file i get Errors: