Skip to content
GuidesBlogPlaygroundDashboard

Geocode

Forward geocode an address
$client->geocode->forward(string q, ?string bbox, ?string countryCode, ?string format, ?string lang, ?float lat, ?string layer, ?int limit, ?float lng): GeocodeResult
GET/api/v1/geocode
Forward geocode an address
$client->geocode->forwardPost(string q, ?string bbox, ?string countryCode, ?string format, ?string lang, ?float lat, ?string layer, ?int limit, ?float lng): GeocodeResult
POST/api/v1/geocode
Reverse geocode a coordinate
$client->geocode->reverse(?string format, ?string lang, ?float lat, ?string layer, ?int limit, ?float lng, ?string near, ?int radius): ReverseGeocodeResult
GET/api/v1/geocode/reverse
Reverse geocode a coordinate
$client->geocode->reversePost(?string format, ?string lang, ?float lat, ?string layer, ?int limit, ?float lng, ?string near, ?int radius): ReverseGeocodeResult
POST/api/v1/geocode/reverse
Autocomplete a partial address
$client->geocode->autocomplete(string q, ?string countryCode, ?string format, ?string lang, ?float lat, ?string layer, ?int limit, ?float lng): AutocompleteResult
GET/api/v1/geocode/autocomplete
Autocomplete a partial address
$client->geocode->autocompletePost(string q, ?string countryCode, ?string format, ?string lang, ?float lat, ?string layer, ?int limit, ?float lng): AutocompleteResult
POST/api/v1/geocode/autocomplete
Batch geocode multiple addresses
$client->geocode->batch(list<string> addresses): GeocodeBatchResponse
POST/api/v1/geocode/batch
ModelsExpand Collapse
list<GeocodingFeature> features

Autocomplete suggestions ordered by relevance

Type type
list<GeocodingFeature> features

Geocoding results ordered by relevance score

Type type

GeoJSON Geometry object per RFC 7946. Coordinates use [longitude, latitude] order. 3D coordinates [lng, lat, elevation] are used for elevation endpoints.

Properties properties

Geocoding result properties

Type type
list<GeocodingFeature> features

Reverse geocoding results ordered by distance

Type type