<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 Jean,<br>
<br>
as Andreas already noted there are two options:<br>
<br>
<i> 1. add support for durations in addition to speed or</i><i><br>
</i><i> 2. use the length of the ferry and the time to calculate a
speed</i><br>
<br>
What exactly are the problems you were having and what did you
try? Increasing the precision should be just a matter of changing
5 to 0.5 for the factor of the encoded value.<br>
<br>
Kind Regards,<br>
Peter<br>
<br>
On 11.05.2015 20:12, jean hilda wrote:<br>
</div>
<blockquote
cite="mid:CADaVbfFt7jb75gvjYqvO3APSrcwhus4mXGW51sKd_B8ST2Ynag@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Peter,
<div><br>
</div>
<div>We have tried during the past days to make some change on
the encoded value but unfortunately we didn't succeed ...</div>
<div>To avoid that, I was wondering if there was a way to ask
graphhopper to calculate the shortest way only with duration
tags ? That means asking graphhopper to take in account only
duration (not distance with speed). Is there a basic way to do
that ?</div>
<div><br>
</div>
<div>Thanks again</div>
<div><br>
</div>
<div>Jean</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2015-05-07 0:34 GMT+02:00 Peter <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:graphhopper@gmx.de" target="_blank">graphhopper@gmx.de</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> Hi Jean,<br>
<br>
the precision of an encoded value is defined per value and
can be also 'float' values. See the EncodedValue class and
its usage e.g. in CarFlagEncoder for speed.<br>
<br>
Regards,<br>
Peter<span class=""><br>
<br>
On 06.05.2015 14:18, jean hilda wrote:<br>
</span><span style="white-space:pre-wrap"><span class="">>
Hi,<br>
><br>
> Thank you Andreas and Peter for your help. We
have already tried to solve the problem by defining a
speed on the ferry routes (with speed in km/h =
Duration / Ferry route lenght). But we are facing
another difficulties : most of our ferry routes are
very short distance (around 200 meters) and for the
duration, it's generally around 50 minutes (because of
waiting time / frequency of rotation and so on). So we
get speed for our ferry routes < 1 km (could be 0.2
Km / h). I believe speeds on Graphhopper has to be
strictly > 1 km /h (it has to be an integer). Is
there a way to change that somewhere in the code and
authorize speed between 0 and 1 km /h (not integer) ?<br>
><br>
> Thanks a lot<br>
><br>
> Jean<br>
><br>
</span> > 2015-05-06 11:46 GMT+02:00 Andreas Wolf
<<a moz-do-not-send="true" href="mailto:dev@a-w.io"
target="_blank">dev@a-w.io</a> <a
moz-do-not-send="true" href="mailto:dev@a-w.io"
target="_blank"><mailto:dev@a-w.io></a>>:<br>
></span>
<div>
<div class="h5"><br>
<blockquote type="cite">Hi,<br>
<br>
Am 05.05.2015 um 12:10 schrieb jean hilda:<br>
> We are testing graphhopper with the
CarFlagEncoder. To do so, we<br>
> have created ways with highway=primary and
maxspeed value and ways<br>
> with route=ferry and duration tags with value =
"hh:mm:ss" (no<br>
> maxspeed for ferry).<br>
<br>
> primary ways and ferry routes are connected
with nodes belonging to<br>
> each others. With duration tag and no maxspeed
tag on ferry<br>
> routes, Graphhopper can't find a route. With no
duration tag and<br>
> maxspeed tag on ferry routes, Graphhopper is
able to find a route.<br>
<br>
> Are we missing something or maybe graphhopper
don't work with<br>
> duration tags on ferry route ?<br>
<br>
AFAIK, there is no support for durations currently.
At least I have<br>
not seen it in the flag encoding, which is where it
should normally be.<br>
<br>
There are—in my eyes—two ways to add this:<br>
<br>
1. add support for durations in addition to speed or<br>
2. use the length of the ferry and the time to
calculate a speed<br>
<br>
Approach 1 is definitely more work, especially in
the routing part (I<br>
have not really dug into that, so I cannot tell you
exact steps).<br>
Approach 2 OTOH might be rather inaccurate, as the
speed is rounded<br>
with a given precision (I think 5 km/h by default)
to save space. With<br>
an additional flag, you could probably turn off this
rounding for some<br>
ways (at the expense of lower possible maximum
speed, but ferries are<br>
rather slow anyways).<br>
<br>
Regards<br>
Andreas<br>
<br>
</blockquote>
</div>
</div>
<span style="white-space:pre-wrap">><br>
> _______________________________________________<br>
> GraphHopper mailing list<br>
> <a moz-do-not-send="true"
href="mailto:GraphHopper@openstreetmap.org"
target="_blank">GraphHopper@openstreetmap.org</a> <a
moz-do-not-send="true"
href="mailto:GraphHopper@openstreetmap.org"
target="_blank"><mailto:GraphHopper@openstreetmap.org></a><br>
> <a moz-do-not-send="true"
href="https://lists.openstreetmap.org/listinfo/graphhopper"
target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a><span
class=""><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> GraphHopper mailing list<br>
> <a moz-do-not-send="true"
href="mailto:GraphHopper@openstreetmap.org"
target="_blank">GraphHopper@openstreetmap.org</a><br>
> <a moz-do-not-send="true"
href="https://lists.openstreetmap.org/listinfo/graphhopper"
target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a></span></span><br>
<br>
<br>
</div>
<br>
_______________________________________________<br>
GraphHopper mailing list<br>
<a moz-do-not-send="true"
href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a><br>
<a moz-do-not-send="true"
href="https://lists.openstreetmap.org/listinfo/graphhopper"
target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<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>