[GraphHopper] has anyone customized an existing vehicle?

Andrew Heard andrew.james.heard at gmail.com
Thu Mar 5 21:40:21 UTC 2015


Hi Peter

Thanks so much for the reply. I really appreciate it.

>yes, that customization is possible
only possible by a programmer, not by an ordinary user; although I am a
retired C# programmer, my reading of the situation is that the Locus dev
Menion has taken GH and incorporated it into an add-on for Locus, that is
code I & you don't have, and just the whole learning curve for Android/
Java/ yet another development system, all looks too hard

>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>
'
wow, that's amazing, *so* much development in this project, this is where I
imagine BRouter is heavily script driven whereas GH has its logic in Java

>where different profiles like racing bike
this may be a question for the Locus guys instead (unless you are aware of
the app), but what is the mapping from the 5 Locus icons, two cycling
profiles boxed below, and to the GH  racing bike profile?
[image: Inline images 1]

>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).
sorry, I was sounding more emotional than rational, the tags are quite
reasonable & I wouldn't change them, but yes the key may be
"surface=gravel", if I select Fast bike in Locus, and if the mapped GH
profile is "racing bike", then it makes no sense (to me) to route via a
gravel hiking track parallel to a primary road of the same distance

however that I see it the beauty of BRouter, everyone is going to have a
different opinion of what a good route is, and they can alter or create a
new script, or in some cases substitute one script for a more suitable one
where they are not knowledgeable enough to make the changes, for example I
have seen fast bike, cycle touring, recumbent, MTB, blind walker scripts -
amazing

Is there anything as a non programmer I can do to

   - enabling logging (I see there is extensive logging in the Java code)
   - check which profile is being used, eg. confirm racing bike

I would be tempted to dive into the code but as I say, I think there is
Locus code connected in there too that I have no access to. May I will ask
the Locus devs.

Thanks again for your time, sorry I may have further questions later.

cheers

Andrew


On 5 March 2015 at 23:55, Gabriel Landais <gabriel.landais at gmail.com> wrote:

> Hi,
>
> I prefer to use vehicle=racingbike usually for my route planning. This is
> how it looks like.
>
> I usually customize bike2 by extending RacingBikeFlagEncoder instead of BikeFlagEncoder,
> and tweaking some weightings (I don't like to ride on primary roads nor
> service roads). And with bike2 I get elevation optimized routes.
>
> Regards
> Gabriel
>
> Le jeu. 5 mars 2015 à 06:29, Andrew Heard <andrew.james.heard at gmail.com>
> a écrit :
>
>> 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
>> _______________________________________________
>> GraphHopper mailing list
>> GraphHopper at openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/graphhopper
>>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20150306/dab6dca6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 102935 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20150306/dab6dca6/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 74589 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20150306/dab6dca6/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gmaps-racingbike.jpg
Type: image/jpeg
Size: 88149 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20150306/dab6dca6/attachment.jpg>


More information about the GraphHopper mailing list