Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatAddress ¶
FormatAddress formats an Address object based on it
Types ¶
type Address ¶
type Address struct {
Attention string
House string
HouseNumber string
Road string
Hamlet string
Village string
Neighbourhood string
PostalCity string
City string
CityDistrict string
Municipality string
County string
CountyCode string
StateDistrict string
Postcode string
State string
StateCode string
Region string
Suburb string
Quarter string
Residential string
Town string
Island string
Archipelago string
Country string
CountryCode string
Continent string
}
func GetFixedAddress ¶
GetFixedAddress Fixes postcode/country, adds missing state/county/country-code and applies template replacements GetFixedAddress Entrypoint for data such as from osm
type Config ¶
type Config struct {
ComponentAliases map[string]componentAlias
Templates map[string]template
StateCodes map[string]map[string]interface{}
CountryToLang map[string]interface{}
CountyCodes map[string]map[string]interface{}
CountryCodes map[string]string
Abbreviations map[string]abbreviation
Abbreviate bool
UnknownAsAttention bool
OutputFormat OutputFormat
}
func LoadConfig ¶
func LoadConfig(configFiles ConfigFiles) *Config
LoadConfig parses the configuration files into a Config structure
type ConfigFiles ¶
type OutputFormat ¶
type OutputFormat int
const ( Array OutputFormat = iota OneLine OutputFormat = iota PostalFormat OutputFormat = iota )
Click to show internal directories.
Click to hide internal directories.