enrich-place-details
Enrich Place Details
Use scripts/enrich_place_details.js to fetch restaurant details from the hosted Dineway API.
Required Inputs
The user must provide both:
- restaurant name
- city or city/country
If either is missing, ask for the missing value and stop the skill. Do not run the script with incomplete inputs.
placeId is optional. If the user provides a valid place id, pass it with --place-id and treat it as authoritative. If no valid place id is provided, the script uses a temporary bootstrap place id only to create the first shadow user, searches by restaurant name and city, then creates a new shadow user bound to the selected place id before fetching details.
Workflow
Run the script from the workspace where the place JSON should be saved. By default it creates places/${placeId}.json under the current directory and prints only a short summary.