Altitude

Topographical Elevation API

Resolution
1′ (~1.8km)
Extent
-90,-180 → 90,180
Datum
WGS 84

Altitude is an open source elevation JSON API.

Data is taken from the ETOPO1 ICE 1 arc-minute dataset. In addition to land topography, bathymetry is given for ocean locations, and ice surface height is given for the Antarctic and Greenland ice sheets.

The elevation value is bilinearly interpolated from the surrounding four grid points.

Usage

The API has a single endpoint, which is compatible with the Google Elevation API.

GET https://altitude.andrewnisbet.nz/api/v1/json?locations=37.43831,-122.16416|37.32056,-122.21364

The response returns the elevation above sea level in metres for each point.

{
    "results": [
        {
            "elevation": 12, 
            "location": {
                "lat": 37.43831, 
                "lon": -122.16416
            }, 
            "resolution": 1800
        }, 
        {
            "elevation": 500, 
            "location": {
                "lat": 37.32056, 
                "lon": -122.21364
            }, 
            "resolution": 1800
        }
    ], 
    "status": "OK"
}

Try it out: /api/v1/json?locations=37.43831,-122.16416|37.32056,-122.21364.