Hello Peter

I don’t have a unit test yet I will see if there is something I can put 
together.  The reason for this is I am working on an alternate (i.e. non ism 
xml) datasource and it encodes road types and right of way information.  This 
means that a road can be marked as having bicycle right of way yes but not 
designated as the uk rights of way are not generally that specific.  It may be 
worth taking into account 

http://wiki.openstreetmap.org/wiki/United_Kingdom_Tagging_Guidelines

Which has two approaches :-
 1) classic which merely tags at the historical right of way name level
 2) alternative which tags the individual access rights given by the 
traditional right of way.  so a bridleway could lead to tags of 

highway=path;
horse=designated;
bicycle=yes†;
foot=designated

Given the separate dataset origin and the fact this is not yet part of upstream 
I will try and write an osm centric unit test.

Sincerely
Stuart Adam


On 2 Jun 2015, at 15:23, Peter <[email protected]> wrote:

> Hi Stuart,
> 
> do you have a simple unit test where it shows for which tagging you expect a 
> different behaviour?
> 
> Maybe this is related to:
> https://github.com/graphhopper/graphhopper/pull/421 ?
> 
> Regards,
> Peter
> 
> On 02.06.2015 16:17, Stuart Adam wrote:
>> Hello all
>> 
>> I am starting to look at bike routing and I note in the handleBikeRelated 
>> method in BikeCommonFlagEncoder the following logic applies.
>> 
>>  if (way.hasTag("bicycle", intendedValues))
>>         {
>>             if (isPusingSection && !way.hasTag("bicycle", "designated"))
>>                 wayType = WayType.OTHER_SMALL_WAY;
>>             else
>>                 wayType = WayType.CYCLEWAY;
>>         } else if ("cycleway".equals(highway))
>>             wayType = WayType.CYCLEWAY;
>>         else if (roadValues.contains(highway))
>>             wayType = WayType.ROAD;
>> 
>> 
>> This does not seem correct to me as from my understanding this is taking the 
>> fact that a way has been marked as having a right of way for bicycles (but 
>> not a pushing section) then it is a full blown cyclepath.  In my mind at 
>> least cycleway implies dedicated and marked (normally with differently 
>> coloured tarmac) sections which is a much stronger indication for cycle use 
>> than just a bicycle right of way.
>> 
>> 
>> Am I correct and if so should this be changed or was there a reason for this 
>> decision in Graphhopper.
>> 
>> Sincerely
>> Stuart Adam
>> 
>> 
>> _______________________________________________
>> GraphHopper mailing list
>> [email protected]
>> https://lists.openstreetmap.org/listinfo/graphhopper
> 
> _______________________________________________
> GraphHopper mailing list
> [email protected]
> https://lists.openstreetmap.org/listinfo/graphhopper

_______________________________________________
GraphHopper mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/graphhopper

Reply via email to