Skip to content
GuidesPlaygroundDashboard

Look up elevation at one or more points

elevation.lookup(ElevationLookupParams**kwargs) -> ElevationLookupResult
GET/api/v1/elevation

Look up elevation at one or more points

ParametersExpand Collapse
lat: Optional[float]

Latitude (single point)

lng: Optional[float]

Longitude (single point)

locations: Optional[str]

Pipe-separated lng,lat pairs (batch)

ReturnsExpand Collapse
class ElevationLookupResult:

GeoJSON Point Feature with 3D coordinate [lng, lat, elevation] (RFC 7946 §3.1.1)

geometry: GeoJsonGeometry
coordinates: Union[List[float], List[List[float]], List[List[List[float]]], List[List[List[List[float]]]]]

GeoJSON coordinates array (nesting depth varies by geometry type)

One of the following:
List[float]
List[List[float]]
List[List[List[float]]]
List[List[List[List[float]]]]
type: Literal["Point", "LineString", "Polygon", 3 more]
One of the following:
"Point"
"LineString"
"Polygon"
"MultiPoint"
"MultiLineString"
"MultiPolygon"
properties: Properties
elevation_m: Optional[float]

Elevation in meters above mean sea level

type: Literal["Feature"]

Look up elevation at one or more points

import os
from plaza import Plaza

client = Plaza(
    api_key=os.environ.get("PLAZA_API_KEY"),  # This is the default and can be omitted
)
elevation_lookup_result = client.elevation.lookup()
print(elevation_lookup_result.geometry)
Returns Examples