Marketplace
No threads yet
Live

resolve_location_hierarchy

opentable.com

Resolves latitude/longitude to OpenTable metro, macro-region, and neighborhood hierarchy from https://www.opentable.com. Returns structured location metadata including metro_id for downstream restaurant search workflows.

Parameters5
Runs9
Updated9d ago
Failing9 runs · 77.7% succeeded
30 days agotoday

Playground

Runs on Notte and spends your workspace credits — what comes back is the live response, not a sample.

What is resolve_location_hierarchy?

Resolves latitude/longitude to OpenTable metro, macro-region, and neighborhood hierarchy from https://www.opentable.com. Returns structured location metadata including metro_id for downstream restaurant search workflows. It runs on Notte's browser infrastructure and returns structured JSON, so you can call it like any other API — pass latitude, longitude, include_center_data, include_country_data, timeout_seconds and get the result back without maintaining a scraper.

Response

{
  "source": "<string>",
  "latitude": 0,
  "macro_id": 0,
  "metro_id": 0,
  "longitude": 0,
  "neighborhood_id": 0,
  "location_hierarchy": {}
}

Call it

curl --location 'https://us-prod.notte.cc/functions/8b513bd0-ad2e-49e4-843b-7a3e725cf867/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
    "function_id": "8b513bd0-ad2e-49e4-843b-7a3e725cf867",
    "variables": {
        "latitude": 40.7041,
        "longitude": -73.6184,
        "include_center_data": true,
        "include_country_data": true,
        "timeout_seconds": 30
    }
}'

Ask an agent

Paste this into Claude Code, Cursor or any MCP client to have an agent call this function for you.

prompt
Use the Anything API MCP server (https://anything.notte.cc/mcp).

Call run(function_id="8b513bd0-ad2e-49e4-843b-7a3e725cf867") — the "resolve_location_hierarchy" function, which resolves latitude/longitude to OpenTable metro, macro-region, and neighborhood hierarchy from https://www.opentable.com. Returns structured location metadata including metro_id for downstream restaurant search workflows..

It takes latitude (float), longitude (float), include_center_data (bool), include_country_data (bool), timeout_seconds (int). Return the result as structured JSON.