InBetween
SearchLocations

Location Names

Send place names or addresses instead of coordinates, and InBe geocodes them for you.

Set locationName to a place name or address (for example "Mayfair, London" or "10 Downing Street, London") and InBe converts it to coordinates before searching. This works in locations on POST /v1/search, and as the locationName query parameter on GET /v1/find.

When to use it

  • Your users type a place rather than share their location.
  • You only have addresses, not coordinates.
  • You want to mix both: some people by GPS, others by name.

locationName takes priority

If a location has both locationName and lat/lon, InBe geocodes the name and ignores the coordinates. Only send locationName when you want it used.

Be specific

InBe uses the first geocoding result for the text you send. Short or common names can match the wrong place.

Instead ofSend
CamdenCamden Town, London, UK
Times SquareTimes Square, New York, USA
The IvyThe Ivy, 1-5 West Street, London

Check the centerPoint in the response to see where InBe actually searched.

Examples

{
  "locations": [{ "locationName": "Shoreditch High Street, London" }],
  "mode": { "mode": "POINT", "maxDistance": 600 }
}
{
  "locations": [
    { "lat": 51.5072, "lon": -0.1276 },
    { "locationName": "Angel Station, London" }
  ],
  "mode": { "mode": "POINT", "maxDistance": 1000 }
}
{
  "locations": [
    { "locationName": "Westminster Bridge, London" },
    { "locationName": "Tower Bridge, London" }
  ],
  "mode": { "mode": "PATH", "maxDistance": 150 }
}

Performance and errors

  • Each locationName adds a geocoding lookup. Names in the same request are geocoded in parallel, but sending coordinates is always faster.
  • If a name can't be found, the whole request fails with a 400 and the message could not find location '<name>', and you aren't charged. Show your user which place wasn't recognised, or geocode it yourself and send coordinates. Other geocoding failures return a 500 and are safe to retry.
  • If you search the same places repeatedly (for example a user's saved home address), store the coordinates from centerPoint and send those next time.

Next steps

On this page