I guess you're right and the rendering engine doesn't get to see that 
attribute!

In my case this would rather be to visually downgrade trunk roads with a 
speed limit of 30 mph or less to primary roads, eg:

https://www.openstreetmap.org/way/52092342 -> not great for cycling
https://www.openstreetmap.org/way/38809713 -> just fine

As a workaround I've used the attributes "foot=yes" or "busway=lane" which 
seem to catch 80% of the cases...


On Sunday, 14 June 2020 03:58:36 UTC+1, A Thompson wrote:
>
> Interesting question. I looked at Topo and a few other built-in renderers 
> on github (here 
> <https://github.com/osmandapp/OsmAnd-resources/tree/master/rendering_styles>) 
> and they don't make any reference to maxspeed. So I suspect that maxspeed 
> is not supplied to the rendering engine.
>
> But... would that really have worked for you anyway? From your writing I 
> guess you might be in the UK. In which case you can have nice rural cycling 
> roads with maxspeed=60 mph The big distinction I can see is 70 mph allowed 
> only on dual carriageways (i.e. with a central barrier). Maybe you could 
> look at "type=dual_carriageway" or "lanes=" ? I don't know if either would 
> work, it's just an idea.
>
> On Wednesday, June 10, 2020 at 12:02:30 PM UTC+1, Damien wrote:
>>
>> I'm making a custom render.xml for cycling based on the Topo style. I was 
>> wondering if it was possible to apply styling based on the speed limit for 
>> a particular road? I've tried various selectors like 
>> additional="maxspeed=X", but that does not seem to work.
>>
>> The goal would be to disambiguate urban trunk roads (totally cyclable) 
>> from high speed trunk roads that are more like motorways.
>>
>> Thanks for any insights :)
>>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osmand/bbcbb25c-f2cd-4c20-8200-75bddd758c60o%40googlegroups.com.

Reply via email to