[OSM-talk] Statistics on road network length?

Hermann Peifer peifer at gmx.eu
Sat Nov 19 09:21:07 GMT 2011


On 18/11/2011 23:30, Jo wrote:
>> Concerning the issue with dual carriageways, I am using a brute-force
>> approach and divide the calculated distance by 2 if these conditions are
>> true:
>>
>> highway ~ /^(motorway|trunk|primary|secondary|tertiary)/&&
>>   oneway ~ /yes|true|1/
>>
>
> You probably want to add oneway=-1 to that list. There are some
> oddballs who used that indicate oneway is against the vector sense.
> Also JOSM proposes to use it when reversing a way.
>
> Jo

Thanks for the hint. I already thought about it but forgot to mention 
that the above tests are using regular expressions. ^motorway also 
matches motorway_link, etc. and 1 also matches -1.

Hermann



More information about the talk mailing list