Commit Graph

21 Commits

Author SHA1 Message Date
Peter Steinberger
522731953d
feat: add business status and route modifiers
Some checks failed
ci / test (push) Has been cancelled
build / goreleaser (push) Has been cancelled
Fixes #7
Fixes #8
2026-05-04 03:02:58 +01:00
Peter Steinberger
7145bf2b1c
chore: update go deps and lint config 2026-04-27 10:40:03 +01:00
Peter Steinberger
f0964c8588 refactor: migrate directions to routes api 2026-02-14 05:53:13 +01:00
Peter Steinberger
1d5069354a test: add directions equals-flag and client constructor coverage 2026-02-14 05:34:43 +01:00
Peter Steinberger
48257e36ff
feat: add directions command with units support (#6)
* 🤖 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>
2026-02-14 05:21:56 +01:00
aligurelli
17728bacc8
Add userRatingCount support (#3)
* 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>
2026-02-14 05:12:24 +01:00
Peter Steinberger
c33a8cc655 test: reuse test path constants
Some checks failed
ci / test (push) Has been cancelled
build / goreleaser (push) Has been cancelled
2026-01-23 12:01:42 +00:00
Peter Steinberger
785a57ad2a chore: update 0.2.1 docs and equals-flag tests 2026-01-23 11:59:45 +00:00
salmonumbrella
54ca4dc8ad
fix(cli): output JSON arrays directly for jq compatibility
Change --json output to emit just the results array instead of
a wrapper object, enabling standard jq piping patterns like
`goplaces search "coffee" --json | jq '.[0]'`.

- search, nearby, resolve: output .Results array, write
  next_page_token to stderr if present
- autocomplete: output .Suggestions array
- details, photo, route: unchanged (single objects)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-03 04:24:44 -08:00
Peter Steinberger
16c0093b92 test: expand route coverage
Some checks failed
ci / test (push) Has been cancelled
build / goreleaser (push) Has been cancelled
2026-01-02 23:01:29 +01:00
Peter Steinberger
6089c1af9a fix: harden route command 2026-01-02 22:38:59 +01:00
James Brooks
d157022860 feat: add route command for searching places along a route
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
2026-01-02 22:30:00 +01:00
Peter Steinberger
26938cc53c feat: add photo support 2026-01-02 21:37:23 +01:00
Peter Steinberger
d7b928d712 feat: add nearby search 2026-01-02 21:30:33 +01:00
Peter Steinberger
715f4d8aa7 feat: add autocomplete support 2026-01-02 21:24:55 +01:00
Peter Steinberger
03d23c05fc docs: add inline comments 2026-01-02 20:56:05 +01:00
Peter Steinberger
fbc63a4f5c chore: prepare 0.1.0 release
Some checks failed
ci / test (push) Has been cancelled
release / goreleaser (push) Has been cancelled
2026-01-02 20:29:03 +01:00
Peter Steinberger
c56e7059d0 feat: add reviews support 2026-01-02 19:49:35 +01:00
Peter Steinberger
2bca928e4e feat: add locale options and lint fmt 2026-01-02 18:21:38 +01:00
Peter Steinberger
56400a603f chore: fix lint config and docs 2026-01-02 17:35:00 +01:00
Peter Steinberger
f47ad8108c feat: bootstrap goplaces 2026-01-02 17:21:02 +01:00