global-elevation
v0.2.1
Published
get the elevation for every point on earth
Downloads
30
Readme
Global Elevation
Get the elevation for every point on earth.
Install
npm i global-elevation
Usage
const { ETOPO5 } = await import('global-elevation');
let etopo5 = new ETOPO5();
let elevation = await etopo5.getElevation(13.4083, 52.5186);
This will create a tmp
folder, download the data from the source and pre-process it.
Note that this may take a few minutes... but only for the first query. Subsequent queries will be extremely fast.
So the best use case for this lib is if you want the heights of thousands/millions of points.
Sources:
| implemented | name | source | |-------------|------------|---------------------------------------------------------------------------------------| | ✅ | ETOPO1 | ETOPO1 | | ✅ | ETOPO5 | ETOPO5 | | - | Copernicus | Copernicus | | - | CEDTM | CEDTM - Continental Europe Digital Terrain Model | | - | NASADEM | NASADEM_HGT |