Skip to content
GuidesPlaygroundDashboard

Look up elevation at one or more points

elevation().lookup(ElevationLookupParamsparams = ElevationLookupParams.none(), RequestOptionsrequestOptions = RequestOptions.none()) : ElevationLookupResult
GET/api/v1/elevation

Look up elevation at one or more points

ParametersExpand Collapse
params: ElevationLookupParams
lat: Optional<Double>

Latitude (single point)

lng: Optional<Double>

Longitude (single point)

locations: Optional<String>

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: Coordinates

GeoJSON coordinates array (nesting depth varies by geometry type)

One of the following:
List<Double>
List<List<Double>>
List<List<List<Double>>>
List<List<List<List<Double>>>>
type: Type
One of the following:
POINT("Point")
LINE_STRING("LineString")
POLYGON("Polygon")
MULTI_POINT("MultiPoint")
MULTI_LINE_STRING("MultiLineString")
MULTI_POLYGON("MultiPolygon")
properties: Properties
elevationM: Optional<Double>

Elevation in meters above mean sea level

type: Type

Look up elevation at one or more points

package com.plazafyi.example

import com.plazafyi.client.PlazaClient
import com.plazafyi.client.okhttp.PlazaOkHttpClient
import com.plazafyi.models.elevation.ElevationLookupParams
import com.plazafyi.models.elevation.ElevationLookupResult

fun main() {
    val client: PlazaClient = PlazaOkHttpClient.fromEnv()

    val elevationLookupResult: ElevationLookupResult = client.elevation().lookup()
}
Returns Examples