For response objects, please see the examples in the API playground.
/nearby
Returns a JSON array of place objects sorted by distance to origin from closest to farthest.
Maximum place objects returned per request is 20.
Data provider: Google
Parameters
lat
- Required. Latitude
lng
- Required. Longitude
type
- Establishment type. Default is cafe. List of all types can be retrieved for free through the /types endpoint.
radius
- Radius in meters. Default is 200.
/random
Returns a single place object.
Same parameter criteria as /nearby.
/details
Returns a place object with details on contact and opening hours.
Parameter
id
- Required. Place ID. This value can be retrieved from place objects returned by /nearby or /random.
/types
Returns a JSON array of establishment types.
The full list of types can be viewed in this endpoint example in the API playground.