Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Location ¶
type Location struct { ID string `json:"id"` Source common.Source `json:"source"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` LocationValidation LocationValidation `json:"locationValidation"` Name string `json:"name"` RawAddress string `json:"rawAddress"` LocationAddress LocationAddress `json:"locationAddress"` }
func NewLocation ¶
func NewLocation() *Location
type LocationAddress ¶
type LocationAddress struct { Country string `json:"country"` Region string `json:"region"` District string `json:"district"` Locality string `json:"locality"` Street string `json:"street"` Address1 string `json:"address1"` Address2 string `json:"address2"` Zip string `json:"zip"` AddressType string `json:"addressType"` HouseNumber string `json:"houseNumber"` PostalCode string `json:"postalCode"` PlusFour string `json:"plusFour"` Commercial bool `json:"commercial"` Predirection string `json:"predirection"` Latitude *float64 `json:"latitude"` Longitude *float64 `json:"longitude"` TimeZone string `json:"timeZone"` UtcOffset *float64 `json:"utcOffset"` }
func (*LocationAddress) FillFrom ¶
func (l *LocationAddress) FillFrom(newLoc LocationAddress)
func (*LocationAddress) From ¶
func (l *LocationAddress) From(fields LocationAddressFields)
func (*LocationAddress) String ¶
func (l *LocationAddress) String() string
type LocationAddressFields ¶
type LocationAddressFields struct { Country string Region string District string Locality string Street string Address1 string Address2 string Zip string AddressType string HouseNumber string PostalCode string PlusFour string Commercial bool Predirection string Latitude *float64 Longitude *float64 TimeZone string UtcOffset *float64 }
type LocationValidation ¶
type LocationValidation struct { ValidationError string `json:"validationError"` SkipReason string `json:"skipReason"` }
func (*LocationValidation) String ¶
func (l *LocationValidation) String() string
Click to show internal directories.
Click to hide internal directories.