An open API service indexing awesome lists of open source software.

https://github.com/reyemtm/elevationquery

A tool that queries publicly available elevations for a given set of points and returns the result as an array and GeoJSON.
https://github.com/reyemtm/elevationquery

elevation geojson maps usgs

Last synced: 3 months ago
JSON representation

A tool that queries publicly available elevations for a given set of points and returns the result as an array and GeoJSON.

Awesome Lists containing this project

README

        

# Elevation Query

```JavaScript
import elQ from "elevation-query";
import fs from "fs";
const { getElevation, getPointArray } = elQ;

const line = JSON.parse(fs.readFileSync("./docs/trail.geojson"));
const points = getPointArray(line, {max: 5});

(async () => {
//Providers are USGS and GMRT (default)
const { elevationArray, featureCollection } = await getElevation(points, {provider: ""});
console.log(points);
console.log(elevationArray)
})()
```