[OSRM-talk] weight instead of speed
Michal Palenik
michal.palenik at freemap.sk
Fri Feb 15 16:42:01 GMT 2013
On Fri, Feb 15, 2013 at 03:55:11PM +0100, Emil Tin wrote:
>
> > can I use weights instead of speed for routing?
>
> Not yet, but it's heavy requested, and as Dennis mentioned, on the OSRM to do list. Initial work has been done in the branch https://github.com/DennisOSRM/Project-OSRM/tree/feature/lua_impedance. Here you can set speed/impedance separately, however, there's a problem with the travel time not being correct.
thanks, works like a charm (note for future git newbies like me:
"git checkout remotes/origin/feature/lua_impedance" )
I could tell the syntax is the same as for speed ( way.impedance = 0 to
disqalify, way.impedance = 100 to make it super preffered)
what is the expected/suggested range?
default impedance?
are weigths of edges calculated as (impedance*speed*length) ?
> Regarding relations, there's a working implementation in https://github.com/DennisOSRM/Project-OSRM/tree/experimental/route_relations. Check the bicycle profile.
will investigate this
I was more in a way of
https://github.com/DennisOSRM/Project-OSRM/issues/590
(since I am used to postgis and have all the preprocessing already done
there)
michal
>
>
> Med venlig hilsen
>
> Emil Tin
> IT- og Processpecialist
> Trafikdesign
> ________________________________
> KØBENHAVNS KOMMUNE
> Teknik- og Miljøforvaltningen
> Center for Trafik
>
> Islands Brygge 37 Vær. 169
> Postboks 450
> 2300 København S
>
> Mobil +45 2369 5986
> Email ZF0F at tmf.kk.dk
> EAN 5798009493149
>
>
>
> -----Oprindelig meddelelse-----
> Fra: Jens Thiele [mailto:karme at karme.de]
> Sendt: 15. februar 2013 15:47
> Til: Michal Palenik
> Cc: osrm-talk at openstreetmap.org
> Emne: Re: [OSRM-talk] weight instead of speed
>
> Michal Palenik <michal.palenik at freemap.sk> writes:
>
> > hi
> >
> > I try to set up a bicycling routing. in bicycles, speed is not the only
> > routing parameter, but some other abstract measure (which a function of
> > speed, safety, surface, comfort and gerenal coolness of the way). after
> > searching osrm github (which shows similar thoughts) I've got lost...
> >
> > so:
> > can I use weights instead of speed for routing?
> > can I put different forward/backward speed/weight on a way?
> > can I use out of OSM information? (e.g. elevation)
> >
> > (or does any branch support this?)
>
> maybe a good time to provide a quick status update from my side
>
> i am working on a tool implementing an additional preprocessing step
> which does the following (already took much more time than expected):
>
> - split ways at intersections
> - add elevation profile (and length) to ways
> - denormalize relations onto ways
> - fix way references in restriction relations
>
> it works but is still quite slow (memory consumption is ok, though)
> other todos:
> - cleanup
> - limit precision in output / fix output format
> - handle duration when splitting way (can't think of a better solution
> than distributing according length)
> (- handle tunnel/bridges?)
> (- maybe handle areas at some point?)
>
> example input (799K):
> http://karme.de/delme/input.osm.bz2
> example output (540K):
> http://karme.de/delme/output.osm.bz2
>
> after that the normal processing can go on and the lua way function has
> all information required
>
> afair:
> there is a branch for different foward/backward weight and emil had a
> branch for weight vs time - likely dennis/emil will comment on this
>
> greetings
> jens
>
> _______________________________________________
> OSRM-talk mailing list
> OSRM-talk at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/osrm-talk
>
> _______________________________________________
> OSRM-talk mailing list
> OSRM-talk at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/osrm-talk
--
michal palenik
www.freemap.sk
www.oma.sk
http://wiki.freemap.sk
More information about the OSRM-talk
mailing list