Places Text Search

search

Find places by text query, then narrow results by type, rating, price, current open state, pagination, and location bias.

Usage

goplaces search <query> [flags]

shell
goplaces search "coffee" --min-rating 4 --open-now --limit 5 \
  --lat 40.8065 --lng -73.9719 --radius-m 3000 --language en --region US

Flags

--limitMax results, 1-20. Default: 10.
--page-tokenContinue a paginated Places response.
--language, --regionBCP-47 language and CLDR region hints.
--keywordAppend a keyword to the text query.
--typePlace type filter. Repeatable; Google receives the included type.
--open-nowReturn currently open places only.
--min-ratingMinimum rating, 0-5.
--price-levelPrice levels 0-4. Repeatable.
--lat, --lng, --radius-mOptional location bias. Provide all three together.

Global flags include --json, --api-key, --timeout, --no-color, and endpoint overrides.

Automation

goplaces search "sushi" --json
goplaces search "pizza" --page-token "$NEXT_PAGE_TOKEN"