Skip to content

npm package to get the elevation for every point on earth

Notifications You must be signed in to change notification settings

SWRdata/global-elevation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

npm package to get the elevation for every point on earth

Resources

Stars

Watchers

Forks