[GraphHopper] Elevation data & two weights per edge
Peter K
peathal at yahoo.de
Tue Mar 18 19:03:32 UTC 2014
Hey Gabriel,
exactly. you can specify this in the config (See the
config-example.properties):
osmreader.acceptWay=bike2
graph.elevation.provider=srtm
(or via Java API)
and then GH will download necessary srtm data automatically for the area
you need.
Regards,
Peter.
> Hi,
>
> this is awesome!
>
> I already tried an old branch with this feature, it was working pretty
> well.
>
> So now it would be possible to compute a bike speed for each direction
> using elevation data?
>
> Great work!
>
> Regards,
> Gabriel
>
>
>
> 2014-03-18 17:30 GMT+01:00 Peter K <peathal at yahoo.de
> <mailto:peathal at yahoo.de>>:
>
> Hi there,
>
> please check out and try a new feature:
> https://github.com/graphhopper/graphhopper/pull/169
>
> Many thanks goes to @NopMap!
>
> I would like to know your ideas/questions/experience before
> merging this
> into master!
>
> In order to implement this it was necessary to introduce a 'reverse'
> flag in the Weighting.calcWeight method. With other changes (like
> several to CH) it is possible to store two weights per edge in
> GraphHopper. This could be useful for a traffic jam scenario as well:
> one direction is slow while the other is faster etc. Storing this
> information in one edge makes it easier to handle and it is more
> compact.
>
> Regards,
> Peter.
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org <mailto:GraphHopper at openstreetmap.org>
> https://lists.openstreetmap.org/listinfo/graphhopper
>
>
>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20140318/43745766/attachment.html>
More information about the GraphHopper
mailing list