Avoiding roundabouts

929 views
Skip to first unread message

Александър Чеширов

unread,
Apr 22, 2016, 7:04:07 AM4/22/16
to Osmand
Ok, I'm one of these who doesn't like roundabouts. I found a way to make osmand to avoid them but I don't want to fully avoid it.
I want to make osmand to give them less priority. I mean if it could avoid a roundabaout without adding many km and time to the route then avoid it.

So, I in my routing.xml.
I added new config button:
<parameter id="avoid_roundabout" name="Avoid Roundabout" description="Avoid Roundabout" type="boolean"/>

and in the <way attribute="priority"> I have added:
<if param="avoid_roundabout">
   
<select value="-1.5" t="junction" v="roundabout"/>
</if>
but the only thing I achieved is that osmand circles 2 times in a roundabout. :D
I have tried many values but I can't make it that I want to. Do you have any suggestions?

Александър Чеширов

unread,
Apr 22, 2016, 10:04:18 AM4/22/16
to Osmand
However guys, I figured it out. :P

Harry van der Wolf

unread,
Apr 22, 2016, 10:20:25 AM4/22/16
to osmand
Please share. 
Maybe there are others who want to use it.

Harry

--
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/d/optout.

Poutnik

unread,
Apr 22, 2016, 10:30:36 AM4/22/16
to Osmand
I am not sure, if it is applicable in France.There is a roundabout every 1-2 km....  :-D

Dne pátek 22. dubna 2016 16:20:25 UTC+2 Harry van der Wolf napsal(a):

Александър Чеширов

unread,
Apr 22, 2016, 10:32:09 AM4/22/16
to Osmand
Ok then.
Open it with notepad to edit it.
First, you need to add 2 new checkboxes to the option menu.
There is it:
<parameter id="less_roundabout" name="Less Roundabouts" description="Less Roundabouts" type="boolean"/>
<parameter id="avoid_roundabout" name="Fully Avoid Roundabouts" description="Fully Avoid Roundabouts" type="boolean"/>

Add these 2 lines above just after this one:
<parameter id="avoid_shuttle_train" name="Avoid Shuttle Trains" description="Avoid Shuttle Trains" type="boolean"/>

Ok, next, find this:
<select value="-1" t="route" v="shuttle_train">
<if param="avoid_shuttle_train"/>
</select>
and after it add:
<select value="-1" t="junction" v="roundabout">
<if param="avoid_roundabout"/>
</select>

After that, find this line:
<way attribute="penalty_transition">
and add this after it:
<if param="less_roundabout">
<select value="240" t="junction" v="roundabout"/>
</if>

And that's it.
Now just safe the file and upload it to your smartphone (sdcard/osmand/).
Of course you have to reload the osmand app.
When you start the app you have to check to avoid roundabouts. :)

Andrew Davie

unread,
Apr 22, 2016, 10:42:02 AM4/22/16
to osm...@googlegroups.com
Very clever, but I am curious; what is bad about roundabouts? Here, they're fantastic!

> On 23 Apr 2016, at 12:32 AM, Александър Чеширов <alex.ch...@gmail.com> wrote:
>
> Ok then.

Александър Чеширов

unread,
Apr 22, 2016, 10:45:50 AM4/22/16
to Osmand
Nothing, they are just confusing for some people. :D

Harry van der Wolf

unread,
Apr 22, 2016, 10:50:04 AM4/22/16
to osmand
@Andrew: If you like roundabouts so much then please use Alex' first option. That allows you to circle the roundabout twice 
:D


Poutnik

unread,
Apr 22, 2016, 10:50:12 AM4/22/16
to Osmand
Like a photo of a gigantic UK city roundabout  with 5 junctions,
where each junction was implemented as a small roundabout.

Combined with left line UK driving - it was a nightmare to be placed there....

Dne pátek 22. dubna 2016 16:45:50 UTC+2 Александър Чеширов napsal(a):

Andrew Davie

unread,
Apr 22, 2016, 10:50:58 AM4/22/16
to osm...@googlegroups.com
Ha!
Reply all
Reply to author
Forward
0 new messages