6b1babe0ba
* #83 Add NewLocation() function * #83 Add NewPlace() function * #83 Add tests for maps/places/location * #83 Add tests for maps/location * #83 Add tests for internal/config * #83 Add test for meta/exif * #83 Add testfiles
22 lines
448 B
Go
22 lines
448 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"`
|
|
}
|
|
|
|
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
|
|
}
|