[OSRM-talk] Foot profile

Emmanuel Bégué medusis at gmail.com
Fri May 2 09:48:56 UTC 2014


Hello,

I'm trying to use foot.lua from cbf-routing-profiles
    direct link:
https://github.com/sosm/cbf-routing-profiles/blob/master/foot.lua

as a profile for osrm-extract, and it's not working (osrm-extract
works fine with profiles from the Project-OSRM repository, but not
with cbf ones).

At first I immediately got the error:
    terminate called recursively

Then I tried to remove the four first lines "require..." from
foot.lua, as no require is used in current profiles (and car.lua even
says in a comment "function temporarily inlined").

Extract now fails a little bit later, with this error:
    [info] Using turn restrictions
    [info] Found no exceptions to turn restrictions
    [info] Parsing in progress..
    terminate called after throwing an instance of 'luabind::error'

It would seem that the syntax of the current profiles are different
from the one used in the cbf versions (which are 5 to 12 months old).

Is this syntax documented? Or, how does one write a profile from
scratch? (Or at least, how does one read a profile?)

(I would be happy to recursively test little modifications to existing
profiles, but since extract/prepare takes a long time, it doesn't seem
like a practical solution...)

Thanks,
Regards,
EB



On Tue, Apr 29, 2014 at 10:16 PM, Emmanuel Bégué <medusis at gmail.com> wrote:
> On Tue, Apr 29, 2014 at 8:36 PM, Sarah Hoffmann <lonvia at denofr.de> wrote:
>>
>> We have adapted foot profiles on our Swiss installation[1], which seem
>> to work fairly ok. Code is here:
>> https://github.com/sosm/cbf-routing-profiles
>
> Thanks!! I'll give it a try ;-)
>
> Regards,
> EB



More information about the OSRM-talk mailing list