kadiraciktan / osrm-profiles

Lua profiles for OSRM OpenStreetMap Routing Machine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

osrm-profiles

Lua profiles for OSRM The files were developped to work with the version 0.3.7 of OSRM.

How to use them

  • Copy or link the lua files to the profiles directory of your osrm installation.

  • Copy or link the file lib/parser.lua to the directory profiles/lib/

Files

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.

Running tests

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

TODO

Use all variants of hazmat like access tag does

Licence

These files are licensed under GPLv3

Author

Rodolphe Quiédeville rodolphe@quiedeville.org

About

Lua profiles for OSRM OpenStreetMap Routing Machine

License:GNU General Public License v3.0


Languages

Language:Lua 100.0%