[OSRM-talk] Foot profile
Sarah Hoffmann
lonvia at denofr.de
Sat May 3 13:00:54 UTC 2014
Hi,
On Sat, May 03, 2014 at 12:23:53PM +0200, Emmanuel Bégué wrote:
> On Fri, May 2, 2014 at 12:13 PM, Sarah Hoffmann <lonvia at denofr.de> wrote:
> >
> > That's an old unmaintained one which really should be removed.
> > Please try one of those two:
> >
> > https://github.com/sosm/cbf-routing-profiles/blob/master/foot-city.lua
> > https://github.com/sosm/cbf-routing-profiles/blob/master/foot-hiking.lua
> >
> > They work fine against OSRM versions 0.3.3 - 0.3.9.
>
> Ok, many thanks for your answer; I followed your instructions and was
> able to use those profiles! So that's great, and thank you again. ;-)
>
> Unfortunately the initial problem isn't solved; some points in Paris
> (lots of them) are apparently non-navigable by foot -- many times, for
> instance, at the center of roundabouts (but not only, and not always).
>
> It's quite strange since when one asks to navigate to/from the middle
> of the river, or the center of a building, or the middle of a highway,
> a path is found that goes to the nearest accessible point.
>
> So it seems, in principle, a path should always be found? What makes
> pathfinding fail in some cases?
Looking at your initial example 48.88368971897955,2.332395315170288,
the problem here is the pedestrian area
http://www.openstreetmap.org/way/108166051
OSRM takes that as a way which is routable (highway=pedestrian being
walkable and all) but as there are no footways that leave the area,
there is no way to get out.
Personally, I think this is a tagging error. Pedestrian areas always
should be connected to the way network. As a quick fix for your routing,
you can exclude all ways with area=yes from routing. Simply add something
like this in way_function() of your profile:
if way.tags:Find('area') ~= '' then
return 0
end
But this might do more harm than good.
Kind regards
Sarah
More information about the OSRM-talk
mailing list