POST Venues Nearby

​

Returns stores ordered by distance from a set of coordinates, each with its distance in metres and miles — the query behind a store-finder map or list.

The result set is capped at 50 stores. Send page and per_page to paginate instead.

Prefer POST /directory/search for a customer-facing store finder. The two share an implementation; the difference is that the directory endpoint always restricts to directory-visible stores, while this one leaves directory_only to you. Reach for this one when you specifically need stores the brand has hidden from its directory.

A customer token is optional. Send it to use only_favorites, and so that any test store the customer is entitled to see is included.

Headers

  • Type of content accepted by the API (application/json in most cases)

  • Application key for specific client app

  • Content-Type header

  • Version of the API to be used

  • Authorization header

  • Unique request identifier

Body

required
application/json
  • Restrict to stores visible in the public directory

  • Capped at 50

  • Requires a signed-in customer; ignored otherwise

  • Filter to stores offering this order type

  • Integer numbers.

  • Capped at 50

  • Search radius in metres. Effectively unlimited when omitted.

Responses

  • application/json
  • latitude or longitude is missing or malformed, or radius/limit are the wrong type.

Request Example for post/venues/nearby
curl https://api-public-demo.menu.app/api/venues/nearby \
  --request POST \
  --header 'Accept: application/json' \
  --header 'Application: application-key' \
  --header 'Content-Type: application/json' \
  --header 'API-VERSION: ' \
  --header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937' \
  --data '{
  "latitude": "41.879",
  "longitude": "-87.63",
  "radius": 5000,
  "limit": 20
}'
{
  "status": "OK",
  "code": 200,
  "data": {
    "venues": [
      {
        "distance": 812.4,
        "distance_in_miles": 0.5,
        "venue": {
          "id": 3540,
          "uuid": "4fac4dfc-3d0e-4b9f-8081-8448be89013b",
          "name": "South Corona",
          "city": "Corona",
          "address": "2320 Compton Avenue"
        }
      }
    ]
  }
}