Google Maps Search
Search Google Maps through Frevana.
Purpose
This skill finds Google Maps places or retrieves a specific place record.
Inputs:
- for a search:
q and type=search
- for a place lookup:
place_id or data_cid (and, for type=place, data)
- optional map origin:
ll, or location/lat and lon together with z or m
- optional
nearby, google_domain, hl, gl, price/rating/opening filters, and start
Output:
- validated response JSON with Google Maps results
The script validates that the response is JSON and returns it unchanged. Do not rewrite or reshape returned data unless the user explicitly asks for a transformation.
What This Skill Needs
- a search query with
--type search, or a --place-id / --data-cid
FREVANA_TOKEN in the environment variables, or --token for the current run
curl, bash, and python3
Commands
Basic place search
bash <skill-path>/scripts/search_google_maps.sh \
--q "coffee shops" \
--type search
Search near a location
bash <skill-path>/scripts/search_google_maps.sh \
--q "coffee shops" \
--type search \
--location "San Francisco, CA" \
--z 12 \
--min-rating 4 \
--open-state now
Look up a known place
bash <skill-path>/scripts/search_google_maps.sh \
--place-id "ChIJIQBpAG2ahYAR_6128GcTUEo"
Override the API host for one environment
FREVANA_API_BASE_URL="https://api-dev.frevana.com" \
bash <skill-path>/scripts/search_google_maps.sh --q "coffee shops" --type search
Request Rules
--type accepts search or place, and is required unless --place-id or --data-cid is supplied.
--type search requires --q; --type place requires --data.
--place-id and --data-cid cannot be used together.
--location or --lat/--lon must be paired with --z or --m; --lat and --lon must be supplied together. Coordinates may be negative, and both --lon -74.0060 and --lon=-74.0060 are accepted.
--z is 3–30; --m is 1–15028132; --min-price and --max-price are 1–4; --min-rating is one of 2, 2.5, 3, 3.5, 4, 4.5.
--open-state is now or 24h and cannot be used with --open-on-day / --open-at-hour. --open-on-day is mon through sun; --open-at-hour is 0–23 and requires --open-on-day.
The API base URL defaults to https://ai-factory.frevana.com; set FREVANA_API_BASE_URL to target another host.
Output
- Success: validated JSON on stdout
- With
--output: the same JSON is also written to the requested file
- Failure: response body or a validation error on stderr, with a non-zero exit code
Example Prompts
- “Search Google Maps for coffee shops in San Francisco that are open now.”
- “Get this Google Maps place by place ID.”
- “Find restaurants near these coordinates, with a minimum 4-star rating.”
1---2name: google-maps-search3description: Use when the user wants Google Maps place search results, place details by Google Maps place ID or CID, nearby/location-biased results, map filters, or pagination through Frevana.4---56# Google Maps Search78Search Google Maps through Frevana.910## Purpose1112This skill finds Google Maps places or retrieves a specific place record.1314Inputs:1516- for a search: `q` and `type=search`17- for a place lookup: `place_id` or `data_cid` (and, for `type=place`, `data`)18- optional map origin: `ll`, or `location`/`lat` and `lon` together with `z` or `m`19- optional `nearby`, `google_domain`, `hl`, `gl`, price/rating/opening filters, and `start`2021Output:2223- validated response JSON with Google Maps results2425The script validates that the response is JSON and returns it unchanged. Do not rewrite or reshape returned data unless the user explicitly asks for a transformation.2627## What This Skill Needs2829- a search query with `--type search`, or a `--place-id` / `--data-cid`30- `FREVANA_TOKEN` in the environment variables, or `--token` for the current run31- `curl`, `bash`, and `python3`3233## Commands3435### Basic place search3637```bash38bash <skill-path>/scripts/search_google_maps.sh \39 --q "coffee shops" \40 --type search41```4243### Search near a location4445```bash46bash <skill-path>/scripts/search_google_maps.sh \47 --q "coffee shops" \48 --type search \49 --location "San Francisco, CA" \50 --z 12 \51 --min-rating 4 \52 --open-state now53```5455### Look up a known place5657```bash58bash <skill-path>/scripts/search_google_maps.sh \59 --place-id "ChIJIQBpAG2ahYAR_6128GcTUEo"60```6162### Override the API host for one environment6364```bash65FREVANA_API_BASE_URL="https://api-dev.frevana.com" \66 bash <skill-path>/scripts/search_google_maps.sh --q "coffee shops" --type search67```6869## Request Rules7071- `--type` accepts `search` or `place`, and is required unless `--place-id` or `--data-cid` is supplied.72- `--type search` requires `--q`; `--type place` requires `--data`.73- `--place-id` and `--data-cid` cannot be used together.74- `--location` or `--lat`/`--lon` must be paired with `--z` or `--m`; `--lat` and `--lon` must be supplied together. Coordinates may be negative, and both `--lon -74.0060` and `--lon=-74.0060` are accepted.75- `--z` is 3–30; `--m` is 1–15028132; `--min-price` and `--max-price` are 1–4; `--min-rating` is one of 2, 2.5, 3, 3.5, 4, 4.5.76- `--open-state` is `now` or `24h` and cannot be used with `--open-on-day` / `--open-at-hour`. `--open-on-day` is `mon` through `sun`; `--open-at-hour` is 0–23 and requires `--open-on-day`.7778The API base URL defaults to `https://ai-factory.frevana.com`; set `FREVANA_API_BASE_URL` to target another host.7980## Output8182- Success: validated JSON on stdout83- With `--output`: the same JSON is also written to the requested file84- Failure: response body or a validation error on stderr, with a non-zero exit code8586## Example Prompts8788- “Search Google Maps for coffee shops in San Francisco that are open now.”89- “Get this Google Maps place by place ID.”90- “Find restaurants near these coordinates, with a minimum 4-star rating.”