[OSM-dev] OSRM lua profile / Error in prepare
Florian Lohoff
f at zz.de
Wed Jul 24 10:19:24 UTC 2013
Hi,
i am trying to tweak a lua profile that i get the "shortest" way on
tarmac roads e.g. no cycle/footway/track/service and no motorway,
ignoring all turn restrictions, oneways, roundabouts, traffic_lights
etc.
For this the way_function simply sets:
way.speed = 10
way.type = 1
and returns 0 on areas motorways etc.
I fail to find the difference between returning 0 and
way.ignore_in_grid = true
Also i get a error in osrm-prepare
[info createHierarchy.cpp:78] Using restrictions from file: germany.osrm.restrictions
[info createHierarchy.cpp:120] Parsing speedprofile from profile.lua
[error Contractor/../DataStructures/ImportEdge.h:44] Type: -1
which is not very helpful on what i did wrong.
I am using cc73ed19b3f83cc7e718a94580c79d02aea8567a May 14
Flo
--
Florian Lohoff f at zz.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20130724/8f1e8033/attachment.pgp>
More information about the dev
mailing list