<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Andrew,<br>
<br>
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:<br>
<a class="moz-txt-link-freetext" href="https://github.com/graphhopper/graphhopper/tree/master/core/src/main/java/com/graphhopper/routing/util">https://github.com/graphhopper/graphhopper/tree/master/core/src/main/java/com/graphhopper/routing/util</a><br>
<br>
e.g. for bike the common super class '<span class="css-truncate
css-truncate-target"><a
href="https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/routing/util/BikeCommonFlagEncoder.java"
class="js-directory-link"
id="b4fa31184b6c22cdef3d72e529ab184f-fcf8179ec5bf5e9ee7f84470dbfda76e724d70a7"
title="BikeCommonFlagEncoder.java">BikeCommonFlagEncoder.java</a></span>'
is used where different profiles like racing bike and mountain
bike extends and change behaviour.<br>
<br>
> route goes via an obscure walking track<br>
<br>
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).<br>
<br>
Regards,<br>
Peter<br>
<br>
On 05.03.2015 06:28, Andrew Heard wrote:<br>
</div>
<blockquote
cite="mid:CADWsB912KxSy_LJupW+Ds7VvtCinm_sQMzK98AzikGg2mmKWGg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>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
moz-do-not-send="true"
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 class=""><span
style="font-size:12pt;font-family:Arial"><a
moz-do-not-send="true"
href="https://graphhopper.com/maps/?point=-42.925132%2C147.255936&point=-42.916458%2C147.267652&vehicle=bike&locale=en-US&elevation=true&layer=Lyrk">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>
<br>
<br>
I am using GraphHopper as on add-on to the Android Locus
GPS app. See similar question here - <a
moz-do-not-send="true"
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>
</div>
Any suggestions would be very much appreciated.<br>
<br>
</div>
cheers<br>
</div>
Andrew<br>
</div>
</blockquote>
<br>
<br>
</body>
</html>