global-elevation

0.2.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i global-elevation

Weekly Downloads

6

Version

0.2.1

License

MIT

Unpacked Size

16.7 kB

Total Files

8

Last publish

Collaborators

  • michaelkreil