Where is routing.xml

590 views
Skip to first unread message

Vladimir Kulev

unread,
Mar 10, 2013, 5:24:33 AM3/10/13
to osm...@googlegroups.com
Hello!

Could you please help me to find where is routing.xml located in Git repo? Also, where can I put it to override on device?

Victor Shcherb

unread,
Mar 10, 2013, 7:51:04 AM3/10/13
to osmand


On Sun, Mar 10, 2013 at 10:24 AM, Vladimir Kulev <m...@lightoze.net> wrote:
Hello!

Could you please help me to find where is routing.xml located in Git repo? Also, where can I put it to override on device?

--
You received this message because you are subscribed to the Google Groups "Osmand" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osmand+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Vladimir Kulev

unread,
Mar 11, 2013, 7:44:19 AM3/11/13
to osm...@googlegroups.com
Thanks, and what old/new API mentioned is used by default in the latest stable Osmand+?

The problem I have is that there is often a bus stops on motorways, as shown here: http://i.imgur.com/FVrVeuZ.png
Thick line is a motorway, thin line is motorway_link, and when it's curved as on the image, the distance by going through a bus stop is shorter than by the main road. And it seems like motorway_link as a priority very close or equal to motorway itself, so Osmand often routes me through such bus stops. It's allowed by road signs but highly inconvenient. So I want to try adjusting routing rules to fix that.

Victor Shcherb

unread,
Mar 11, 2013, 2:20:15 PM3/11/13
to osmand
This known issue for current routing algorithm. Precise routing (in the setting) will fix that issue but it is very slow for now.


Victor

Vladimir Kulev

unread,
Mar 13, 2013, 5:58:28 PM3/13/13
to osm...@googlegroups.com
Sorry for late reply, but is any workaround possible with current algorithm by tuning its parameters?

Vladimir Kulev

unread,
Mar 14, 2013, 7:46:07 AM3/14/13
to osm...@googlegroups.com
Another question which I can't figure out from routing.xml is why OsmAnd routes a car through this barrier point with access restriction: http://www.openstreetmap.org/browse/node/502928089
One guess is that I should split the way by this point, could you comment please?

Arndt

unread,
Mar 14, 2013, 10:35:37 AM3/14/13
to osm...@googlegroups.com
OsmAnd's access logic is just broken.

Please don't adapt a correct map to a broken router.

However, you could try to replace the motorvehicle=no by a access=no,
this would still tell the same (because foot and bike are tagged explictily),
but is less "exotic" and chances are that OsmAnd can handle that.

Vladimir Kulev

unread,
Mar 14, 2013, 10:45:05 AM3/14/13
to osm...@googlegroups.com
I'm just wondering what can be done in order to improve the situation. I use OsmAnd car routing for about a year, but only now I started experiencing these two issues above quite often (I lived in a different place before). Actually the first one with bus links is more important.

Victor Shcherb

unread,
Mar 14, 2013, 10:49:50 AM3/14/13
to osmand
There is a small piece missing here 
We avoid all roads that have "motor_vehicle=no" but not obstacle this could be easily fixed by adding line .
<obstacle tag="motor_vehicle" value="no" penalty="-1"/>
To get the fix without fixing routing.xml tag=motor_vehicle could be replaced with tag="motorcar", which I believe has a different meaning....

Victor


Vladimir Kulev

unread,
Mar 14, 2013, 11:02:10 AM3/14/13
to osm...@googlegroups.com
According to http://wiki.openstreetmap.org/wiki/Key:access motor_vehicle is a common category for motorcycles and cars. Could you add it to be supported by OsmAnd?

Also there is a duplicate tag <avoid tag="motorcar" value="no"/> on lines 313 and 316.

Victor Shcherb

unread,
Mar 14, 2013, 11:23:19 AM3/14/13
to osmand
I would appreciate if you could create pull-request for that (for future changes). It is very easy to do, open the file in browser and press "fork and edit" and after that "create pull request".

Anyway will fix it later.

Many Thanks,
Victor

Victor Shcherb

unread,
Mar 14, 2013, 11:24:36 AM3/14/13
to osmand
BTW : we are in the middle to introduce very generic and cool osm configuration which will handle difficult combinations of route restrictions but currently it is not supported by C++. That's why in the file you see mess of 2 schemas  (old supported now and new supported only by Java routing for now).

Victor
Message has been deleted
Message has been deleted
Message has been deleted

Texas

unread,
Mar 19, 2013, 3:23:56 PM3/19/13
to osm...@googlegroups.com
Now what is the difference between the new and the old API in Routing.xml? Do I need both?

Texas

unread,
Mar 19, 2013, 4:15:53 PM3/19/13
to osm...@googlegroups.com
Now what is the difference between the new and the old API in Routing.xml? Do I need both
?

if i copy the routing.xml in to the osmand folder, then crashes constantly my osmand app. What is the problem?

Texas

unread,
Mar 19, 2013, 4:17:17 PM3/19/13
to osm...@googlegroups.com
If i copy the routing.xml in to the osmand folder, then crashes constantly my osmand app. what is the problem?

Victor Shcherb

unread,
Mar 20, 2013, 6:29:46 PM3/20/13
to osmand
Please try this one 

From branch 1.1.3 (this is released version).

Best Regards,
Victor


On Tue, Mar 19, 2013 at 9:17 PM, Texas <wis...@googlemail.com> wrote:
If i copy the routing.xml in to the osmand folder, then crashes constantly my osmand app. what is the problem?

Tux Zweitausend

unread,
Mar 1, 2014, 12:15:52 PM3/1/14
to osm...@googlegroups.com
I used the linked version to create an optimised routing.xml for version 1.6.5 to make biking safer and the routing following more the biking ways and less on secondary roads (beside which there is a biking path available). I couldn't find the routing.xml in my fork of the git repository so i could not send a pull request. Probably its not used any more with the new routing method.
However if somebody might have any use of it its attached to this message...

Cheers,
Pascal
routing.xml

Harry van der Wolf

unread,
Mar 1, 2014, 2:33:43 PM3/1/14
to osmand
It's in the resources repo. See https://github.com/osmandapp/OsmAnd-resources

Harry
Reply all
Reply to author
Forward
0 new messages