Commit Graph

48 Commits

Author SHA1 Message Date
Peter Steinberger
55170352c3
ci: update homebrew tap on release
Some checks failed
ci / test (push) Has been cancelled
2026-05-07 03:56:52 +01:00
Peter Steinberger
4a57c76e3e
style: improve command card spacing
Some checks failed
ci / test (push) Has been cancelled
pages / deploy (push) Has been cancelled
2026-05-05 01:36:26 +01:00
Peter Steinberger
328b7553a3
docs: refresh docs site 2026-05-04 23:12:11 +01:00
Peter Steinberger
d113626796
refactor: move client implementation under internal 2026-05-04 07:58:32 +01:00
Peter Steinberger
5ccbbbd7fe
ci: enable GitHub Pages deployments 2026-05-04 07:46:56 +01:00
Peter Steinberger
f050b6de1d
docs: add GitHub Pages docs site 2026-05-04 07:45:52 +01:00
Peter Steinberger
b0c4047024
docs: explain project in README 2026-05-04 04:07:05 +01:00
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
8dddb1c754 docs(changelog): start 0.3.1 unreleased 2026-02-14 12:38:35 +01:00
Peter Steinberger
58d9d817d3 docs(release): sync docs for 0.3.0 and github release flow 2026-02-14 06:03:13 +01:00
Peter Steinberger
46fa4a1323 chore(release): cut 0.3.0
Some checks failed
ci / test (push) Has been cancelled
build / goreleaser (push) Has been cancelled
2026-02-14 05:56:08 +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
Peter Steinberger
89820bb0ab docs: thank @aligurelli in changelog for PR #3 2026-02-14 05:12:47 +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
04fc939651 chore: start 0.2.2 changelog 2026-01-24 00:08:29 +00: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
Peter Steinberger
5dc1c0cf6b build: always rebuild goplaces target 2026-01-10 18:56:12 +01:00
Peter Steinberger
d93d9179d6
Merge pull request #2 from salmonumbrella/fix/json-array-output
fix(cli): output JSON arrays directly for jq compatibility
2026-01-10 17:36:31 +00:00
Peter Steinberger
4f23bc7d87 chore(release): add windows arm64 target 2026-01-09 23:36:56 +01:00
Peter Steinberger
67b0105039 build: add linux_arm64 goreleaser target 2026-01-04 06:25:20 +01: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
859a7ea3b8 docs: update changelog for 0.2.0 2026-01-02 22:39:03 +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
e675f1a7e7 docs: expand API key setup instructions
- Add step-by-step Google Cloud Console links
- Include env var setup instructions
- Add pricing warning and quota recommendation
- Clarify E2E env var descriptions
2026-01-02 20:49:20 +01:00
Peter Steinberger
5d6827b9f0 fix: add cli package comment 2026-01-02 20:48:27 +01:00
Peter Steinberger
aa334c817c docs: add api key setup 2026-01-02 20:47:55 +01:00
Peter Steinberger
ae679bf68a ci: install golangci-lint v2 2026-01-02 20:42:10 +01:00
Peter Steinberger
b9ee9422a4 chore: build-only goreleaser 2026-01-02 20:39:11 +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
ff767464e3 test: extend reviews coverage 2026-01-02 20:10:00 +01:00
Peter Steinberger
c56e7059d0 feat: add reviews support 2026-01-02 19:49:35 +01:00
Peter Steinberger
79f853c8bd test: add e2e coverage 2026-01-02 19:42:53 +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
70d4a6aecb
Revise project title in README
Updated project title and removed redundant tagline.
2026-01-02 17:25:14 +01:00
Peter Steinberger
9ad292102a docs: add emoji and tagline
📍 Find places, Go fast

🦞
2026-01-02 17:21:52 +01:00
Peter Steinberger
f47ad8108c feat: bootstrap goplaces 2026-01-02 17:21:02 +01:00
Peter Steinberger
e97f1d32b5
Initial commit 2026-01-02 16:49:23 +01:00