[GraphHopper] speed limit
Philipp Kraus
philipp.kraus at tu-clausthal.de
Mon May 19 12:43:26 UTC 2014
Am 19.05.2014 um 14:12 schrieb Peter K <peathal at yahoo.de>:
> yes, sure. You can collect this while import e.g. via your own
> CarFlagEncoder and store the maxspeed via an additional EncodedValue
> (like we already do for the speed itself), and then add a separate
> getMaxSpeed method to the encoder to read this information.
I have take a look into https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/routing/util/CarFlagEncoder.java
IMHO it seems to be correct, if I run this.getGraph().getEncodingManager().getEncoder("CAR").getSpeed I should get the correct speed limit on a road, shouldn't I?
The encoder reads the limit from the data and if it not set it sets the default value. Did I understand it correct, that GraphHopper reads the data and use it? I'm a little bit
confused, I need not to implement the encoder myself.
Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20140519/ceb6c187/attachment.html>
More information about the GraphHopper
mailing list