[GraphHopper] has anyone customized an existing vehicle?
Peter
graphhopper at gmx.de
Thu Mar 5 10:30:27 UTC 2015
Hi Andrew,
yes, that customization is possible, although not in an externalizable
'script'. It is currently done directly in Java, although we have plans
to introduce some scripting at a later time. Have a look into the
FlagEncoders:
https://github.com/graphhopper/graphhopper/tree/master/core/src/main/java/com/graphhopper/routing/util
e.g. for bike the common super class 'BikeCommonFlagEncoder.java
<https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/routing/util/BikeCommonFlagEncoder.java>'
is used where different profiles like racing bike and mountain bike
extends and change behaviour.
> route goes via an obscure walking track
Well, not really obscure, the track is marked with bicycle=yes and as
the road is highway=primary road graphhopper is trying to avoid that.
What we could do is also trying to avoid sac_scale=hiking or
surface=gravel (maybe the latter is already done).
Regards,
Peter
On 05.03.2015 06:28, Andrew Heard wrote:
> Has anyone customized an "existing vehicle". Customization is listed
> as a feature at the end of the community webpage -
> https://graphhopper.com/#community? Or can I tweak settings to alter
> routing behavior? In the BRouter engine for example there are profile
> scripts that allow a huge amount of customization.
>
> In an example below
> (https://graphhopper.com/maps/?point=-42.925132%2C147.255936&point=-42.916458%2C147.267652&vehicle=bike&locale=en-US&elevation=true&layer=Lyrk)
> the route goes via an obscure walking track (between my red arrows),
> whereas the close-by orange Huon Road is quiet and very bike-friendly,
> and in my opinion should have been the far better choice:
>
>
> I am using GraphHopper as on add-on to the Android Locus GPS app. See
> similar question here -
> http://help.locusmap.eu/topic/graphhopper-has-anyone-customized-an-existing-vehicle
>
> Any suggestions would be very much appreciated.
>
> cheers
> Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20150305/e6bf7997/attachment.html>
More information about the GraphHopper
mailing list