-
Notifications
You must be signed in to change notification settings - Fork 0
/
location.go
28 lines (24 loc) · 936 Bytes
/
location.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
package vcapool
type Location struct {
Name string `json:"name" bson:"name"`
Street string `json:"street" bson:"street"`
City string `json:"city" bson:"city"`
Country string `json:"country" bson:"country"`
CountryCode string `json:"country_code" bson:"country_code"`
Number string `json:"number" bson:"number"`
Position Position `json:"position" bson:"position"`
PlaceID string `json:"place_id" bson:"place_id"`
Sublocality string `json:"sublocality" bson:"sublocality"`
}
type Position struct {
Lat float64 `json:"lat" bson:"lat"`
Lng float64 `json:"lng" bson:"lng"`
}
type Meeting struct {
MeetAt int64 `json:"meet_at" bson:"meet_at"`
Location Location `json:"location" bson:"location"`
Type string `json:"type" bson:"type"`
Title string `json:"title" bson:"title"`
Subtitle string `json:"subtitle" bson:"subtitle"`
}
type MeetingList []Meeting