[GraphHopper] height information

Peter graphhopper at gmx.de
Wed Mar 25 08:18:29 UTC 2015


Hi Phil,

here is more information:
https://github.com/graphhopper/graphhopper/blob/master/docs/core/elevation.md

> How can I get / read the elevation
> <http://www.dict.cc/englisch-deutsch/elevation.html> data? IMHO I need
> a call on my GHResponse
> I need the elevation
> <http://www.dict.cc/englisch-deutsch/elevation.html> of an edge at the
> moment.

You can read the elevation like you are getting lat and lon:
edge.fetchWayGeometry(n).getEle(i)

>> You could use the data from OSM, but as this is only available for
>> certain points and even those are not measured in the same system
>> this is pretty useless.
>
> Does GraphHopper import the data from the PBF file?

No, elevation is not read from the pbf. See OSMReader and the
ElevationProvider implementations how this is done.


> @Off-topic but included by the question: How can I get access on the
> OSM meta data e.g. sideways, building data. Does in GraphHopper an API
> call exists?

No. We only read and store data that we need. Sideways are included but
not the building data.

Regards,
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20150325/08379345/attachment.html>


More information about the GraphHopper mailing list