From d6291d773a80403eb087e703a33ba472b6c6dd65 Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Tue, 23 Jul 2024 15:10:41 -0400 Subject: [PATCH] fix location subtype --- types.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/types.go b/types.go index fef59d1..d58d7a0 100644 --- a/types.go +++ b/types.go @@ -169,14 +169,13 @@ type SearchResult struct { ClusterType string `json:"cluster_type"` CreativeWork *CreativeWork `json:"creative_work"` FAQ *FAQ `json:"faq"` - Locations *Locations `json:"locations"` + Location *LocationResult `json:"location"` Movie *MovieData `json:"movie"` MusicRecording *MusicRecording `json:"music_recording"` ProductCluster []Product `json:"product_cluster"` QA *QAPage `json:"qa"` Rating *Rating `json:"rating"` Recipe *Recipe `json:"recipe"` - Restaurant *LocationResult `json:"restaurant"` Review *Review `json:"review"` Software *Software `json:"software"` Video *VideoData `json:"video"` @@ -378,11 +377,6 @@ type PictureResults struct { ViewMoreURL string `json:"viewMoreUrl"` } -type Locations struct { - Type string `json:"type"` - Results []LocationResult `json:"results"` -} - type MovieData struct { Name string `json:"name"` Description string `json:"description"`