Skip to content
GuidesPlaygroundDashboard

Look up elevation at one or more points

elevation.lookup(**kwargs) -> ElevationLookupResult { geometry, properties, type }
GET/api/v1/elevation

Look up elevation at one or more points

ParametersExpand Collapse
lat: Float

Latitude (single point)

lng: Float

Longitude (single point)

locations: String

Pipe-separated lng,lat pairs (batch)

ReturnsExpand Collapse
class ElevationLookupResult { geometry, properties, type }

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

geometry: GeoJsonGeometry { coordinates, type }
coordinates: Array[Float] | Array[Array[Float]] | Array[Array[Array[Float]]] | Array[Array[Array[Array[Float]]]]

GeoJSON coordinates array (nesting depth varies by geometry type)

One of the following:
Array[Float]
Array[Array[Float]]
Array[Array[Array[Float]]]
Array[Array[Array[Array[Float]]]]
type: :Point | :LineString | :Polygon | 3 more
One of the following:
:Point
:LineString
:Polygon
:MultiPoint
:MultiLineString
:MultiPolygon
properties: { elevation_m}
elevation_m: Float

Elevation in meters above mean sea level

type: :Feature

Look up elevation at one or more points

require "plaza"

plaza = Plaza::Client.new(
  api_key: "My API Key",
  environment: "local" # defaults to "production"
)

elevation_lookup_result = plaza.elevation.lookup

puts(elevation_lookup_result)
Returns Examples