Overview
The/v2/location-search endpoint returns a paginated list of geographic locations from the Obvlo content engine. Locations represent areas of interest such as neighbourhoods, districts, or city zones. You can filter by proximity and search by keyword.
Localised fields and the lang parameter
The fields displayName, headline, description, address, area, and keywords carry translated content.
The shape of these fields depends on whether lang is provided:
lang | Field shape | Example |
|---|---|---|
Provided (e.g. lang=en-GB) | Plain value for the requested language. | "displayName": "Shoreditch" |
| Omitted | Language map — one key per available language code. | "displayName": { "en-GB": "Shoreditch" } |
lang is omitted, at least the default language (en-GB) is always included in the map.
Request
Required parameters
| Parameter | Type | Description |
|---|---|---|
orgId | string | Your organisation ID. |
Optional parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
profileId | string | — | Scope results to a specific host profile. |
searchQuery | string | — | Full-text query matched against location names and descriptions. |
latlng | string | — | Geo-center for proximity filtering. Format: latitude,longitude (e.g. 51.5074,-0.1278). |
radius | number | Profile default | Search radius in metres around latlng. |
page | integer | 1 | Page number (1-based). |
hitsPerPage | integer | 10 | Results per page. Maximum 20. |
rankBy | string | distance | Ranking strategy: distance (nearest first, requires latlng) or score (relevance). |
lang | string | — | BCP 47 language code (e.g. en-GB). When provided, localised fields are returned as plain values instead of language maps. |
Examples
Basic search for an organisation
Basic search
Geo-filtered search near London
Geo-filtered, near London
Text search anchored to a host profile
Text search
Sort by relevance instead of distance
Sort by relevance
Search with a specific language
With parameter
Response
- With lang=en-GB
- Without lang (language map)
Response fields
| Field | Type | Description |
|---|---|---|
results | array | Array of matching location objects. |
total | integer | Total number of matching locations. |
pages | integer | Total number of pages. |
Location object fields
| Field | Type | Description |
|---|---|---|
id | string | Unique location identifier. |
hostIds | string[] | Host profiles this location belongs to. |
status | string | Publication status (always published in API responses). |
displayName | string | object | Location name. Plain string when lang is provided; language map otherwise. |
headline | string | object | Short headline. Plain string when lang is provided; language map otherwise. |
description | string | object | Description. Plain string when lang is provided; language map otherwise. |
address | string | object | Address. Plain string when lang is provided; language map otherwise. |
area | string | object | Area or district name. Plain string when lang is provided; language map otherwise. |
keywords | array | object | Keywords. Array when lang is provided; language map of arrays otherwise. |
geoLocation | [number, number] | Coordinates as [latitude, longitude]. |
geoDistance | number | Distance in metres from the latlng centre (present when latlng is provided). |
radius | number | Radius of the location area in metres. |
languageCodes | string[] | Language codes available for this location. |
photos | array | Array of photo objects. Each has id, category, attributions, keywords, and images. |