Skip to content

furkot/elevation

Repository files navigation

NPM version Build Status Dependency Status

@furkot/elevation

Elevation service for Furkot

Install

$ npm install --save @furkot/elevation

Usage

const furkotElevation = require('@furkot/elevation');

const elevation = furkotElevation(options);

const points = [
  [ lon, lat ] ,
  // ...
];

const result = await elevation(points);
// result is an Array of elevations in meters
// elevation Array items corresponds to the items in points array 
assert.equal(result.length, points.length);

License

MIT © Damian Krzeminski