Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UnexpectedLength = errors.New("Unexpected Length")
View Source
var UnparsableAddress = errors.New("Could not parse the given address")
Functions ¶
func AutoAddressId ¶
func AutoAddressId(addresses []*Address)
Give each address in the array an id equal to its index + 1
Types ¶
type Address ¶
type Address struct { Id int64 `json:"id"` Full string `json:"address"` Number int `json:"number"` Fraction string `json:"fraction"` Prefix string `json:"prefix"` Street string `json:"street"` Type string `json:"type"` Suffix string `json:"suffix"` Unit string `json:"unit"` City string `json:"city"` // aka Muni County string `json:"county"` State string `json:"state"` // Index 10 Zip int `json:"zip"` Zip4 int `json:"zip4"` Latitude float64 `json:"latitude"` Longitude float64 `json:"longitude"` }
func ParseAddress ¶
Click to show internal directories.
Click to hide internal directories.