[OSM-dev] Custom costs with pgRouting and osm2pgrouting
Toby Murray
toby.murray at gmail.com
Thu Sep 1 16:21:09 BST 2011
On Wed, Aug 31, 2011 at 1:04 AM, Josh Doe <josh at joshdoe.com> wrote:
> I've used osm2pgrouting to import a small area, and have been running
> pgRouting's driving_distance() function simply using length as the
> cost, but now I'd like to compute custom costs that take into account
> things like maxspeed, surface, etc. The simplest example is doing
> least-time rather than least-distance by using length/maxspeed. I
> haven't been able to find any examples that show how to do this, and
> would greatly appreciate working code or pointers to docs I may have
> missed.
> Thanks,
> -Josh
I may be trying to do something similar soon. The local bicyle club
wants to have a routing service that takes the "bikeability" of roads
into account. Some information has already been tagged on all the
roads in the city so now I just need to find a routing engine that
will use the tags. Sorry, don't have any answers yet - I just started
looking at this last night :)
Toby
More information about the dev
mailing list