forked from ChimeraCoder/anaconda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
place.go
35 lines (34 loc) · 1.15 KB
/
place.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
package anaconda
type Place struct {
Attributes map[string]string `json:"attributes"`
BoundingBox struct {
Coordinates [][][]float64 `json:"coordinates"`
Type string `json:"type"`
} `json:"bounding_box"`
ContainedWithin []struct {
Attributes map[string]string `json:"attributes"`
BoundingBox struct {
Coordinates [][][]float64 `json:"coordinates"`
Type string `json:"type"`
} `json:"bounding_box"`
Country string `json:"country"`
CountryCode string `json:"country_code"`
FullName string `json:"full_name"`
ID string `json:"id"`
Name string `json:"name"`
PlaceType string `json:"place_type"`
URL string `json:"url"`
} `json:"contained_within"`
Country string `json:"country"`
CountryCode string `json:"country_code"`
FullName string `json:"full_name"`
Geometry struct {
Coordinates [][][]float64 `json:"coordinates"`
Type string `json:"type"`
} `json:"geometry"`
ID string `json:"id"`
Name string `json:"name"`
PlaceType string `json:"place_type"`
Polylines []string `json:"polylines"`
URL string `json:"url"`
}