2019-12-31 07:16:11 +01:00
|
|
|
package places
|
|
|
|
|
|
|
|
// Place
|
|
|
|
type Place struct {
|
2020-01-02 04:08:33 +01:00
|
|
|
PlaceID string `json:"id"`
|
2019-12-31 07:16:11 +01:00
|
|
|
LocLabel string `json:"label"`
|
|
|
|
LocCity string `json:"city"`
|
|
|
|
LocState string `json:"state"`
|
|
|
|
LocCountry string `json:"country"`
|
|
|
|
}
|
2020-01-19 13:27:15 +01:00
|
|
|
|
|
|
|
func NewPlace(id string, label string, city string, state string, country string) Place {
|
|
|
|
result := Place{
|
|
|
|
PlaceID: id,
|
|
|
|
LocLabel: label,
|
|
|
|
LocCity: city,
|
|
|
|
LocState: state,
|
|
|
|
LocCountry: country,
|
|
|
|
}
|
|
|
|
|
|
|
|
return result
|
|
|
|
}
|