SKILL.md
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:
qandtype=search - for a place lookup:
placeidordatacid(and, fortype=place,data) - optional map origin:
ll, orlocation/latandlontogether withzorm - optional
nearby,google_domain,hl,gl, price/rating/opening filters, andstart
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_TOKENin the environment variables, or--tokenfor the current runcurl,bash, andpython3
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
--typeacceptssearchorplace, and is required unless--place-idor--data-cidis supplied.--type searchrequires--q;--type placerequires--data.--place-idand--data-cidcannot be used together.--locationor--lat/--lonmust be paired with--zor--m;--latand--lonmust be supplied together. Coordinates may be negative, and both--lon -74.0060and--lon=-74.0060are accepted.--zis 3–30;--mis 1–15028132;--min-priceand--max-priceare 1–4;--min-ratingis one of 2, 2.5, 3, 3.5, 4, 4.5.--open-stateisnowor24hand cannot be used with--open-on-day/--open-at-hour.--open-on-dayismonthroughsun;--open-at-houris 0–23 and requires--open-on-day.
The API base URL defaults to https://ai-factory.frevana.com; set FREVANAAPIBASE_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.”