From f9fb2533c8d67e1229f88fcb73c8dfad760a3d65 Mon Sep 17 00:00:00 2001 From: tim-eternos Date: Sun, 2 Aug 2026 09:12:21 -0700 Subject: [PATCH] Expand Visit category search to entertainment venue types GetPlaceTypes(Visit) grows from 4 to 10 Google place types, adding movie_theater, bowling_alley, zoo, aquarium, stadium and tourist_attraction. These were already in placeTypeToCategory (they classify and round-trip to Visit, and could enter the cache via text-search confirms) but were never fetched by a category scan, so nearby-by-category results contained none of these venue types. Cost note: a cold Visit search's per-round fan-out rises from 4 to 10 concurrent Nearby calls. Warm cells are unaffected; cells with a fresh Visit marker pick up the new types when their marker ages out (14 days). Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01DjdGnZM6cUBeg6jWwoQfU3 --- POI/categories.go | 7 ++++++- test/place_category_test.go | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/POI/categories.go b/POI/categories.go index b119c23d..7d035c4a 100644 --- a/POI/categories.go +++ b/POI/categories.go @@ -205,7 +205,12 @@ func GetPlaceTypes(placeCat PlaceCategory) (placeTypes []LocationType) { switch placeCat { case PlaceCategoryVisit: placeTypes = append(placeTypes, - []LocationType{LocationTypePark, LocationTypeAmusementPark, LocationTypeGallery, LocationTypeMuseum}...) + []LocationType{ + LocationTypePark, LocationTypeAmusementPark, LocationTypeGallery, LocationTypeMuseum, + LocationTypeMovieTheater, LocationTypeBowlingAlley, + LocationTypeZoo, LocationTypeAquarium, + LocationTypeStadium, LocationTypeTouristAttraction, + }...) case PlaceCategoryEatery: placeTypes = append(placeTypes, []LocationType{LocationTypeCafe, LocationTypeRestaurant, LocationTypeBar, LocationTypeBakery, LocationTypeMealTakeaway}...) diff --git a/test/place_category_test.go b/test/place_category_test.go index f765f6fc..fface6c4 100644 --- a/test/place_category_test.go +++ b/test/place_category_test.go @@ -13,6 +13,9 @@ func TestGetPlaceTypesByCategory(t *testing.T) { POI.PlaceCategoryVisit: { POI.LocationTypePark, POI.LocationTypeAmusementPark, POI.LocationTypeGallery, POI.LocationTypeMuseum, + POI.LocationTypeMovieTheater, POI.LocationTypeBowlingAlley, + POI.LocationTypeZoo, POI.LocationTypeAquarium, + POI.LocationTypeStadium, POI.LocationTypeTouristAttraction, }, POI.PlaceCategoryEatery: { POI.LocationTypeCafe, POI.LocationTypeRestaurant,