<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi,<br>
<br>
if you use CH you can set this only up-front (when preparing the
graph). If not, you can do request.setType("fastest"|"shortest")
... what do you mean with optimal?<br>
<br>
Regards,<br>
Peter.<br>
<br>
</div>
<blockquote cite="mid:1382682493.724100519@f205.i.mail.ru"
type="cite">
Hi!<br>
I use graphhopper on android and use it:<br>
GHRequest req = new GHRequest(fromLat, fromLon, toLat,<br>
toLon).setAlgorithm("dijkstrabi").putHint(<br>
"douglas.minprecision", 1);<br>
GHResponse resp = hopper.route(req);<br>
<br>
<span id="result_box" class="" lang="en"><span class="hps">Can I</span>
<span class="hps">choose</span> <span class="hps">which route</span>
<span class="hps">to build?</span> <span class="hps">the
shortest</span> <span class="hps">or the fastest</span> <span
class="hps">or</span> <span class="hps alt-edited">the
optimal</span><span>?</span></span><br>
-- <br>
Дмитрий Пучков
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
GraphHopper mailing list
<a class="moz-txt-link-abbreviated" href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/graphhopper">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
</blockquote>
<br>
</body>
</html>