[GraphHopper] Avoid bridges in route search
Peter
graphhopper at gmx.de
Mon Nov 24 15:51:24 UTC 2014
Hi Riz,
see e.g. the CarFlagEncoder:
https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/routing/util/CarFlagEncoder.java
for the optional value you can have a look at the wayTypeEncoder:
https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/routing/util/BikeCommonFlagEncoder.java#L57
Regards,
Peter
On 24.11.2014 16:46, محمد رضوان انصارى wrote:
> Hi Peter,
> Thanks for quick response
>
> I am quite new to OSM and GraphHopper, please help me understand these
>
> How do i exclude the tag, do you mean from the OSM file, if not please
> direct me to the graphhopper code where changes need to be made?
> Also you said it's configurable and I have to store them in flags,
> where are the flags located?
>
>
> *Regards,
> Riz*
> *محمد رضوان انصارى*
>
> On Mon, Nov 24, 2014 at 5:28 PM, Peter <graphhopper at gmx.de
> <mailto:graphhopper at gmx.de>> wrote:
>
> Yes. If you know up-front for all searches you can completely
> exclude the tag or just make it a low priority.
>
> If you want to have it configurable you need to store this
> information in the flags while import and access it in the
> weighting while querying (currently you'll have to disable CH to
> make this working)
>
> Regards,
> Peter
>
>
>
> On 24.11.2014 12:53, محمد رضوان انصارى wrote:
>> Hello,
>>
>> Can I add restriction like avoid BRIDGES (walking bridge) when
>> mode is WALKING in route searches?
>> like there is an option avoid highways|tolls in driving mode in
>> google direction api.
>>
>> *Regards,
>> Riz*
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20141124/e49fc0cb/attachment.html>
More information about the GraphHopper
mailing list