Skip to main content
GET
Find nearby places of a given type

Supported place types

The type field supports almost all feature types available in OpenStreetMap. A few feature types have been merged to give better results — sending type=eat, for example, returns combined results for cafes, restaurants and bakeries. If you want just one of them, send that type directly (type=cafe).
Apart from these, you can fetch other OSM feature types such as toilets or post_office. Further information on supported types is available in the OpenStreetMap map features documentation.

Authorizations

key
string
query
required

Your Baato access token. See Authentication.

Query Parameters

type
string
required

The type or category of results the request should return, for example hospital, cafe, or a merged type such as eat.

lat
number<double>
required

Latitude around which to retrieve place information.

lon
number<double>
required

Longitude around which to retrieve place information.

radius
integer
default:10

Radius in kilometres from the specified lat/lon pair within which to look for results. Only integer values are supported.

limit
integer
default:5

The number of results the request should return.

sortBy
boolean

Sort results in ascending order by their distance from the specified location, so the nearest result is first.

isOpen
boolean

Return only places that are open for business at the time of the query. Places that do not specify opening hours in the Baato database are excluded when this parameter is set.

Response

Nearby places of the requested type.

timestamp
string

Server time when the response was generated.

Example:

"Thu May 14 07:35:16 NPT 2020"

status
integer

HTTP-style status code echoed in the response body.

Example:

200

message
string
Example:

"Success"

data
object[]