<div dir="ltr"><div><div><div><div>Hi Peter<br><br></div>Thanks so much for the reply. I really appreciate it.<br><br>>yes, that customization is possible<br></div>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<br><br>>e.g. for bike the common super class '<span><a href="https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/routing/util/BikeCommonFlagEncoder.java" title="BikeCommonFlagEncoder.java" target="_blank">BikeCommonFlagEncoder.java</a></span>'<br></div>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<br><br>>where different profiles like racing bike<br></div>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?<div><img alt="Inline images 1" src="cid:ii_14bebd3b3dcb75e1" height="299" width="247"><br><br>>Well, not really obscure, the track is marked with bicycle=yes and
      as the road is highway=primary road<br>>graphhopper is trying to avoid
      that. What we could do is also trying to avoid<br>>sac_scale=hiking or
      surface=gravel (maybe the latter is already done).<br></div><div>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<br><br></div><div>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<br><br></div><div>Is there anything as a non programmer I can do to<br><ul><li>enabling logging (I see there is extensive logging in the Java code)</li><li>check which profile is being used, eg. confirm racing bike</li></ul><p>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.</p><p>Thanks again for your time, sorry I may have further questions later.</p><p>cheers</p><p>Andrew<br></p></div><div>
      <br> </div></div><div class="gmail_extra"><br><div class="gmail_quote">On 5 March 2015 at 23:55, Gabriel Landais <span dir="ltr"><<a href="mailto:gabriel.landais@gmail.com" target="_blank">gabriel.landais@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I prefer to use vehicle=racingbike usually for my route planning. This is how it looks like.<img src="cid:14bea010eb77b379fd11" style="max-width:100%"></div><div><br></div><div>I usually customize bike2 by extending RacingBikeFlagEncoder instead of <span style="font-size:13.1999998092651px">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.</span><br><br>Regards</div><div>Gabriel<br><br><div class="gmail_quote">Le jeu. 5 mars 2015 à 06:29, Andrew Heard <<a href="mailto:andrew.james.heard@gmail.com" target="_blank">andrew.james.heard@gmail.com</a>> a écrit :<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><span class="">Has anyone customized an "existing vehicle". Customization is listed as a feature at the end of the community webpage - <span><span style="font-size:12pt;font-family:Arial"><a href="https://graphhopper.com/#community" target="_blank">https://graphhopper.com/#community</a></span></span>? 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.<br><br>In an example below (<span><span style="font-size:12pt;font-family:Arial"><a href="https://graphhopper.com/maps/?point=-42.925132%2C147.255936&point=-42.916458%2C147.267652&vehicle=bike&locale=en-US&elevation=true&layer=Lyrk" target="_blank">https://graphhopper.com/maps/?point=-42.925132%2C147.255936&point=-42.916458%2C147.267652&vehicle=bike&locale=en-US&elevation=true&layer=Lyrk</a>)</span></span> 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: <br></span><img src="cid:ii_14be860f9c5bc7f2" style="max-width:100%"><span class=""><br><br>I am using GraphHopper as on add-on to the Android Locus GPS app. See similar question here - <a href="http://help.locusmap.eu/topic/graphhopper-has-anyone-customized-an-existing-vehicle" target="_blank">http://help.locusmap.eu/topic/graphhopper-has-anyone-customized-an-existing-vehicle</a><br><br></span></div><span class="">Any suggestions would be very much appreciated.<br><br></span></div>cheers<br></div>Andrew<br></div>
______________________________<u></u>_________________<br>
GraphHopper mailing list<br>
<a href="mailto:GraphHopper@openstreetmap.org" target="_blank">GraphHopper@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.<u></u>org/listinfo/graphhopper</a><br>
</blockquote></div></div></div>
<br>_______________________________________________<br>
GraphHopper mailing list<br>
<a href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a><br>
<br></blockquote></div><br></div>