feat: add route command for searching places along a route#1
Closed
jamesbrooksco wants to merge 1 commit into
Closed
feat: add route command for searching places along a route#1jamesbrooksco wants to merge 1 commit into
jamesbrooksco wants to merge 1 commit into
Conversation
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
Collaborator
|
Cherry-picked and integrated on main; closing PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
routecommand that searches for places along a driving route between two locations.Features
Usage
Example Output
New Files
route.go- Core implementation (Routes API, polyline decoder, waypoint sampling)internal/cli/route.go- CLI command definitionRequirements
Requires the Google Routes API to be enabled in addition to Places API (New).