96098913ff
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
24 lines
503 B
Go
24 lines
503 B
Go
package places
|
|
|
|
// Place
|
|
type Place struct {
|
|
PlaceID string `json:"id"`
|
|
LocLabel string `json:"label"`
|
|
LocCity string `json:"city"`
|
|
LocState string `json:"state"`
|
|
LocCountry string `json:"country"`
|
|
LocKeywords string `json:"keywords"`
|
|
}
|
|
|
|
func NewPlace(id, label, city, state, country, keywords string) Place {
|
|
result := Place{
|
|
PlaceID: id,
|
|
LocLabel: label,
|
|
LocCity: city,
|
|
LocState: state,
|
|
LocCountry: country,
|
|
LocKeywords: keywords,
|
|
}
|
|
|
|
return result
|
|
}
|