Skip to content

Broaden Eatery category: bar, bakery, meal_takeaway - #445

Merged
timwangmusic merged 1 commit into
masterfrom
feat/eatery-more-food-types
Jul 29, 2026
Merged

Broaden Eatery category: bar, bakery, meal_takeaway#445
timwangmusic merged 1 commit into
masterfrom
feat/eatery-more-food-types

Conversation

@tim-eternos

Copy link
Copy Markdown
Collaborator

Why

The "Food & drink" (Eatery) category searched only cafe + restaurant, so it had no drink venues and missed bakeries and fast-casual/takeout spots (burger joints, taquerias, delis). This broadens coverage of the category.

Change

POI/categories.go: add bar, bakery, meal_takeaway to GetPlaceTypes(Eatery) and — in lockstep — to GetPlaceCategory (the type→category round-trip must stay consistent, or the nearby-search cache writes/reads under mismatched keys and never hits; guarded by TestPlaceCategoryRoundTrip).

Skipped meal_delivery — ghost/delivery-only kitchens aren't places you can visit, so they'd be noise in a "near me" list.

No reward-mapping change: OfferBee's cardRewards.ts already maps bar/bakery/meal_takeaway → Dining.

Testing

go build ./..., go test ./POI/... ./iowrappers/... ./planner/... ./test/... pass (incl. the round-trip and place-type-expansion tests, updated for the new Eatery set).

Note: legacy Google Nearby Search type supports these; richer cuisine types (pizza_restaurant, sushi_restaurant, …) would need a Places API (New) migration — separate effort.

Food & drink searched only cafe + restaurant, so it had no drink venues and
missed bakeries and fast-casual/takeout spots. Add bar, bakery, and meal_takeaway
to the Eatery place types (skip meal_delivery — ghost kitchens aren't visitable).

- categories.go: new LocationType constants; add all three to GetPlaceTypes(Eatery)
  and, in lockstep, GetPlaceCategory (the type→category round-trip must stay
  consistent or the nearby-search cache never hits — guarded by
  TestPlaceCategoryRoundTrip).
- No reward change needed: cardRewards.ts already maps bar/bakery/meal_takeaway
  to Dining.

go build + go test (POI/iowrappers/planner/test) pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cv6h62pnPJZykmbsmppuSy

@timwangmusic timwangmusic left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@timwangmusic
timwangmusic merged commit 066c113 into master Jul 29, 2026
4 checks passed
@timwangmusic
timwangmusic deleted the feat/eatery-more-food-types branch July 29, 2026 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants