Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.
/ map-elevation Public archive

An elevation service that uses DEM data in the HGT or GeoTIFF format (ASP.NET Web API 2)

License

Notifications You must be signed in to change notification settings

andywcoder/map-elevation

Repository files navigation

map-elevation

An elevation service that uses DEM data in the HGT or GeoTIFF format.

This is the ASP.NET Web API 2 version, which isn't maintained anymore. For the latest version please check out the ASP.NET Core MVC version at https://github.com/Andy9FromSpace/map-elevation-core

API

GET https://elevation.map.santolibre.net/api/v1/elevation?encodedPoints=[encodedPoints]

Parameters

Parameter Description
encodedPoints Points in the encoded polyline format (https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
smoothingMode None (default), WindowSmooth or FeedbackSmooth

Response

rangeElevations: array of [distance, elevation]

{
  rangeElevations: [[0, 302], [120, 342], [254, 296], [487, 246]]
}

GET https://elevation.map.santolibre.net/api/v1/metadata

Examples

Get elevations of a list of points

GET https://elevation.map.santolibre.net/api/v1/elevation?encodedPoints=ksiuxAe%60nzN_%40qFqBkTiByWeAoLk%40kPsB%7DF%5DcC

Get elevations of a list of points with smoothing

GET https://elevation.map.santolibre.net/api/v1/elevation?encodedPoints=ksiuxAe%60nzN_%40qFqBkTiByWeAoLk%40kPsB%7DF%5DcC&&smoothingMode=FeedbackSmooth

About

An elevation service that uses DEM data in the HGT or GeoTIFF format (ASP.NET Web API 2)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published