Skip to content
GuidesPlaygroundDashboard

Look up elevation at one or more points

$client->elevation->lookup(?float lat, ?float lng, ?string locations): 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 string

Pipe-separated lng,lat pairs (batch)

ReturnsExpand Collapse
Properties properties
Type type

Look up elevation at one or more points

<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

$client = new Client(apiKey: 'My API Key', environment: 'local');

$elevationLookupResult = $client->elevation->lookup(
  lat: 0, lng: 0, locations: 'locations'
);

var_dump($elevationLookupResult);
Returns Examples