📍

goplaces

Search Google Places, get details, and pull reviews from the command line — human-readable output or clean JSON for scripts.

作者 OpenClawv1.0.0
Search & ResearchAutomationAPICLIDeveloper Tool
正在连接 VM...
正在连接 VM...
npx clawhub@latest install goplaces
10当前安装数
v1.0.0版本

系统要求

goplacesGoogle Places API KeyPlaces API Base URL Override(optional)

goplaces brings the full power of the Google Places API (New) to your terminal. Search for businesses and points of interest, look up place details, resolve ambiguous location names to Place IDs, and fetch reviews — all without writing a line of code.Results are formatted for human readability by default, with a --json flag that emits clean, structured output for use in scripts, pipelines, and automation workflows.

工作原理

goplaces wraps the Google Places API (New) in a streamlined CLI experience:Set your GOOGLE_PLACES_API_KEY environment variable.Run a command — search, resolve, or details — with your query and any filters.Results are printed in a human-friendly format with ANSI color, or in raw JSON when --json is passed.Use pagination tokens to page through large result sets, or pipe JSON output directly into other tools.

核心功能

Text Search — Find places by keyword with filters for open status, minimum rating, price level, type, and result limit.Location Bias — Constrain or bias searches by latitude, longitude, and radius for geographically relevant results.Place Resolution — Resolve ambiguous location names (e.g. "Soho, London") to canonical Place IDs with ranked candidates.Place Details & Reviews — Fetch rich place details and user reviews for any Place ID using goplaces details <place_id> --reviews.Pagination Support — Page through results seamlessly using --page-token for large search queries.Script-Friendly JSON Output — Toggle --json for clean, structured JSON suitable for downstream scripting and automation.Color Control — Disable ANSI color via --no-color flag or the standard NO_COLOR environment variable.

系统要求

Google Places API Key — Required. Authenticates all requests to the Google Places API (New). Set as the GOOGLE_PLACES_API_KEY environment variable. Obtain a key from the Google Cloud Console with the Places API (New) enabled.Base URL Override — (optional) Set GOOGLE_PLACES_BASE_URL to point requests at a proxy or test endpoint instead of the live Google Places API.

使用场景

Local Business Discovery — Quickly find highly-rated, open coffee shops, restaurants, or services near a specific coordinate without opening a browser.Data Enrichment Scripts — Feed a list of place names through goplaces resolve and details to enrich datasets with structured Google Places data via JSON output.Review Monitoring — Pull the latest reviews for a venue directly from the terminal for sentiment analysis or reporting pipelines.Geocoding & ID Resolution — Resolve human-readable location names to canonical Place IDs for use in mapping or other API integrations.

安装方式

1
Run in your terminal
npx clawhub@latest install goplaces
or
2
Click the Install button at the top of this page for one-click setup

常见问题

评价

0 条评价

登录后撰写评价

暂无评价。来分享你的使用体验吧!