[Routing] IRouteMetric selection for TurnRestrictedMultiTargetDijkstraRouter route method

Oleg Demchenko oleg.demchenko at gmail.com
Mon Sep 6 14:05:27 BST 2010


Hi Marcus and All.

I'm successfully running route estimation method with a default
ShortestRoteMetric, but results are not acceptable for my task. method
selects short, but very small roads first, instead of motorways and other
fast driving roads.

>From a description I see that most suitable for my task is
StaticFastestRouteMetric - metric counting the travel-time of the way using
fixed averaged for known highway-types

But when I'm trying to initialize StaticFastestRouteMetric object , I'm get
an exception from TrafficMessageStore.java module, when program trying
connect to external Traffic Message source

    private TrafficMessageStore() {
*        this.myDatabaseURL = Settings.getInstance().get("tmc.storepath",
getDefaultURL());*
        this.myConnection = getConnection();
    }

I don't need any TrafficMessage for my purpose. Metric which prefer
"fastest" roads building a path, will be suitable for my situation.

 Questions:
1) how to remove traffic logic from this metric? Any setup or command line
parameter?
2) In which source is defined average car speed depending on a way type?

p.s. I'm using last versions of libosm,  osmnavigation and TravelingSalesMan
project downloaded from SVN.

Thanks in advance.

-- 
All the best
               Oleg Demchenko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/routing/attachments/20100906/e46ca1c5/attachment.html>


More information about the Routing mailing list