-
Notifications
You must be signed in to change notification settings - Fork 0
/
venue.go
57 lines (51 loc) · 1.68 KB
/
venue.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package gosquare
type Venue struct {
Id string `json:"id"`
Name string `json:"name"`
Contact Contact `json:"contact"`
Location VenueLocation `json:"location"`
Categories []VenueCategory `json:"categories`
Verified bool `json:"verified"`
Stats VenueStats `json:"stats"`
Url string `json:"url"`
Like bool `json:"like"`
VenuePage VenuePage `json:"venuePage"`
StoreId string `json:"storeId"`
Menu VenueMenu `json:"menu"`
}
type VenueLocation struct {
Address string `json:"address"`
CrossStreet string `json:"crossStreet"`
Lat float64 `json:"lat"`
Lon float64 `json:"lon"`
PostalCode string `json:"postalCode"`
CC string `json:"cc"`
City string `json:"city"`
State string `json:"state"`
Country string `json:"country"`
FormattedAddress []string `json:"formattedAddress"`
}
type VenueCategory struct {
Id string `json:"id"`
Name string `json:"name"`
PluralName string `json:"pluralName"`
ShortName string `json:"shortName"`
Icon Icon `json:"icon"`
Primary bool `json:"primary"`
}
type VenueStats struct {
CheckinsCount int `json:"checkinsCount"`
UsersCount int `json:"usersCount"`
TipCount int `json:"tipCount"`
}
type VenuePage struct {
Id string `json:"id"`
}
type VenueMenu struct {
Type string `json:"type"`
Label string `json:"label"`
Anchor string `json:"anchor"`
Url string `json:"url"`
MobileUrl string `json:"mobileUrl"`
ExternalUrl string `json:"externalUrl"`
}