* 🤖 feat: add directions command
What:
- add Directions API client with distance/duration + steps parsing
- add CLI directions command with compare mode and optional steps
- update docs and changelog
Why:
- support A→B directions/ETA without Routes API
- make bot answers actionable without external clicks
Tests:
- go test ./...
* 🤖 feat: add directions units flag (metric default)
What:
- add metric/imperial units support to Directions API calls
- default CLI + client to metric units
- document units flag and add tests
Why:
- allow human output to match preferred units
- avoid manual unit conversions in bot responses
Tests:
- go test ./...
* fix: harden directions errors, step text cleanup, and CLI coverage
* test: expand directions coverage and CLI regressions
---------
Co-authored-by: joshp123 <joshp123@users.noreply.github.com>
* feat: add userRatingCount to search, nearby, and details
Add the userRatingCount field from the Google Places API (New) to
PlaceSummary and PlaceDetails types. This allows consumers to see
the total number of user ratings for each place.
Changes:
- Add userRatingCount to search, nearby, and details field masks
- Add UserRatingCount field to placeItem payload struct
- Add UserRatingCount to PlaceSummary and PlaceDetails types
- Map the field in mapPlaceSummary and mapPlaceDetails
- Display rating count in CLI output as 'Rating: 4.5 (532)'
- Include as 'user_rating_count' in JSON output
* fix: handle rating-count rendering fallback and add regressions
---------
Co-authored-by: Peter Steinberger <steipete@gmail.com>
Adds a new route command that searches for places along a driving route between two locations.
Features:
- Uses Google Routes API to get route polyline
- Samples waypoints evenly along the route by distance
- Searches for places at each waypoint with location bias
- Supports all travel modes (DRIVE, WALK, BICYCLE, TWO_WHEELER, TRANSIT)
- Configurable waypoint count, search radius, and result limit
Usage:
goplaces route "coffee" --from "London, UK" --to "Bristol, UK"
goplaces route "gas station" --from "NYC" --to "Boston" --max-waypoints 5