Ask HN: Do you use an elevation API?
I've been working on building an alternative to the Google Maps Elevation API, making use of the high-quality open elevation data released over the last few years: the 30m Copernicus global dataset, improved 1m coverage of the US and England, EU countries releasing national datasets under open licenses.
I'd love to know more about how HN uses elevation data and APIs. I have a 9 question survey here: https://forms.gle/1EhX4c2mLHuRTR1C9 and will share the results with the community.
It would also be great for people to share their usecases in this thread!
3 comments
[ 4.6 ms ] story [ 20.8 ms ] thread• Raster data for flood modelling
• Point queries comparing elevation to flood models
• Using elevation to improve accuracy of hyper-local weather modelling
• Elevation profiles of activities: like strava but for various different niches
• Flight planning for various aerial activities: drones, general aviation, hang gliding, paragliding, normal gliding
Compared to self hosting, APIs add latency and remove control. But people seem to use them to avoid dealing with multi-TB datasets, abstract away a lot of the geospatial complexity with projections and tiling and geoids, and to avoid dealing with lots of different datasets from different sources.
And with the Google Maps API in particular, people struggle with the high cost of course, but also the lack of providence about the data used, and the accuracy reduction of batch queries.
These days I run everything geospatial in docker containers, the dependencies in geo are tricky.
Interesting about the memory/caching issues. I was going to suggest rasterio which I use for batch queries in https://github.com/ajnisbet/opentopodata and comes bundled with its own gdal binary, but looks like you're already using that.
I've also used zarr+tifffile for geotiffs in particular, it's faster and avoids a lot of gdal's warts, but you still need something like rasterio to read the geospatial metadata and handle projections.