LB31 / HikingForNerds

The Unlicense
3 stars 2 forks source link

Host an open-elevation service #48

Closed dephiloper closed 4 years ago

dephiloper commented 4 years ago

For getting elevation data from specific latitude/longitude coordinates an service needs to be set up which should also be located on our h4nsolo server.

As entrance point the following repository provides information for setting up the service:
https://github.com/Jorl17/open-elevation

dephiloper commented 4 years ago

The above mentioned repository was forked (under https://github.com/dephiloper/open-elevation) to modify the data retrieving scripts that they only download relevant data (germany).

dephiloper commented 4 years ago

Like in the tileserver-gl the open-elevation api is available under https://h4nsolo.f4.htw-berlin.de/elevation/ followed by the default api route.

dephiloper commented 4 years ago

To install the open-elevation endpoint these instructions were followed: https://github.com/Developer66/open-elevation

Additionally gdal was installed via custom pip command, which gathers the currently installed gdal version itself. pip install GDAL==$(gdal-config --version) --global-option=build_ext --global-option="-I/usr/include/gdal"

dephiloper commented 4 years ago

The endpoint can now be accessed via (example query for center of berlin): https://h4nsolo.f4.htw-berlin.de/elevation/api/v1/lookup?locations=52.520008,13.404954

@LB31 fyi