nbn

package
v0.0.0-...-412d769 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Street   string
	Suburb   string
	Postcode string
	State    string
}

Address is input for the initial search

type AddressDetail

type AddressDetail struct {
	AddressStatus         string
	ServiceType           string
	ServiceStatus         string
	TechType              string
	ServiceabilityMessage string
	StatusMessage         string
}

AddressDetail is returned from the final lookup with details on the LOC

func Lookup

func Lookup(id string) (*AddressDetail, error)

Lookup based on NBNco ID

type Suggestion

type Suggestion struct {
	ID               string
	FormattedAddress string
	Latitude         float64
	Longitude        float64
}

Suggestion is returned from the initial search with potential matches

func Search(address Address) ([]Suggestion, error)

Search for address, returning nbnco suggestions

Jump to

Keyboard shortcuts

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