Add juicy elevation data to your fresh GeoJSON.
Check out the demo app, if you want to get a feel for it.
npm install --save geojson-elevation
The module exports a single function,
geojsonis the GeoJSON object to add elevation data to
elevationProvideris an object with the method
getElevation(latLng, cb)- typically, you pass a
TileSetinstance from node-hgt
cbis a callback that is called when the elevation data has been added (or an error occurs), the callback should take to args:
err(undefined if the operation succeeds) and
geojson, which is the GeoJSON instance that was passed to the function
var addElevation = addElevationTileSet = TileSet;;