<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
there is already duration support via the second approach Andreas mentioned
in AbstractFlagEncoder.handleFerryTags<br>
<br>
Not all strings are supported though, see the comments in the code.
Please submit a simple unit test showing that the duration handling
or parsing does not work, this way we can faster fix it.<br>
<br>
Regards,<br>
Peter<br>
<br>
On 06.05.2015 11:46, Andreas Wolf wrote:<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>
<span style="white-space: pre;">><br>
> _______________________________________________<br>
> GraphHopper mailing list<br>
> <a class="moz-txt-link-abbreviated" href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a><br>
> <a class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/graphhopper">https://lists.openstreetmap.org/listinfo/graphhopper</a></span><br>
<br>
<br>
</body>
</html>