place.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. package anaconda
  2. type Place struct {
  3. Attributes map[string]string `json:"attributes"`
  4. BoundingBox struct {
  5. Coordinates [][][]float64 `json:"coordinates"`
  6. Type string `json:"type"`
  7. } `json:"bounding_box"`
  8. ContainedWithin []struct {
  9. Attributes map[string]string `json:"attributes"`
  10. BoundingBox struct {
  11. Coordinates [][][]float64 `json:"coordinates"`
  12. Type string `json:"type"`
  13. } `json:"bounding_box"`
  14. Country string `json:"country"`
  15. CountryCode string `json:"country_code"`
  16. FullName string `json:"full_name"`
  17. ID string `json:"id"`
  18. Name string `json:"name"`
  19. PlaceType string `json:"place_type"`
  20. URL string `json:"url"`
  21. } `json:"contained_within"`
  22. Country string `json:"country"`
  23. CountryCode string `json:"country_code"`
  24. FullName string `json:"full_name"`
  25. Geometry struct {
  26. Coordinates [][][]float64 `json:"coordinates"`
  27. Type string `json:"type"`
  28. } `json:"geometry"`
  29. ID string `json:"id"`
  30. Name string `json:"name"`
  31. PlaceType string `json:"place_type"`
  32. Polylines []string `json:"polylines"`
  33. URL string `json:"url"`
  34. }