Lua profiles for OSRM The files were developped to work with the version 0.3.7 of OSRM.
-
Copy or link the lua files to the profiles directory of your osrm installation.
-
Copy or link the file
lib/parser.lua
to the directoryprofiles/lib/
All the following files derived from car.lua distributed with OSRM.
-
car_hazmat.lua for vehicle with hazardous matarials inboard
-
truck.lua for trucks with weight > 3.5t and height >= 4.0 meters
-
truck_hazmat.lua for trucks with weight > 3.5t and height >= 4.0 meters with hazardous materials inboard.
The scripts where wrote with lua5.2 the unit test library used is
luanit, clone the repo https://github.com/rjpcomputing/luaunit.git and
link luaunit.lua
to the directory where tests.lua
is.
$ lua tests.lua
Use all variants of hazmat like access tag does
These files are licensed under GPLv3
Rodolphe Quiédeville rodolphe@quiedeville.org