Skip to content
GuidesPlaygroundDashboard

Look up elevation at one or more points

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

Look up elevation at one or more points

ParametersExpand Collapse
ElevationLookupParams params
Optional<Double> lat

Latitude (single point)

Optional<Double> lng

Longitude (single point)

Optional<String> locations

Pipe-separated lng,lat pairs (batch)

ReturnsExpand Collapse
class ElevationLookupResult:

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

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
Optional<Double> elevationM

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;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        PlazaClient client = PlazaOkHttpClient.fromEnv();

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