washoe

package
v0.0.0-...-2b89640 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2014 License: MIT Imports: 6 Imported by: 0

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

func ParseAddresses

func ParseAddresses(path string) (addresses []citygrid.Location, err error)

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

func ParseAddress(raw []string) (address *Address, err error)

func (*Address) LatLong

func (address *Address) LatLong() (float64, float64)

func (*Address) String

func (address *Address) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL