address

package module
v0.0.0-...-4d937aa Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2020 License: MIT Imports: 3 Imported by: 0

README

GoAddressParser

Overview

This is the start of a library for USPS to validate US addresses.

License

GoAddressParser is licensed under a MIT License.

Installation

To install GoAddressParser, simply run go get github.com/0syntrax0/go-address-parser

Segments Of A Street Address

To get the segments of:

  • Standard US style address: 201 E Randolph St
  • PO Boxes: 12341 (PO Box)
  • Addresses with dashes (hyphens): AB90–AB120 E Randolph St
  • Grid style (Usually Found in the Salt Lake City area): 11782 Rd 39.4
  • Alpha-numeric addresses (usually found in Wisconsin and Northern Illinois): N6W23001 BLUEMOUND RD
  • Fractional addresses: 123 1/2 BLUEMOUND RD

Just pass your address through

Address Segments

var s Street
addressSegments := s.Parse("201 E Randolph St")

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Street

type Street struct {
	Number    string
	Direction string
	Name      string
	Suffix    string
}

Street street information

func (*Street) Parse

func (s *Street) Parse(st string) *Street

Parse parses a street Follow this pattern: http://help.lucity.com/webhelp/v155/web/35257.htm

Jump to

Keyboard shortcuts

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