Documentation
¶
Overview ¶
Package place provides a client for Ordnance Survey's Places API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Countries = []string{}/* 195 elements not displayed */
Taken from https://www.gov.uk/government/publications/geographical-names-and-information
Functions ¶
This section is empty.
Types ¶
type Address ¶
type AddressDetails ¶ added in v0.1280.0
type AddressDetails struct { Address string `json:"ADDRESS"` SubBuildingName string `json:"SUB_BUILDING_NAME"` BuildingName string `json:"BUILDING_NAME"` BuildingNumber string `json:"BUILDING_NUMBER"` ThoroughFareName string `json:"THOROUGHFARE_NAME"` DependentLocality string `json:"DEPENDENT_LOCALITY"` Town string `json:"POST_TOWN"` Postcode string `json:"POSTCODE"` }
func (*AddressDetails) TransformToAddress ¶ added in v0.1280.0
func (ad *AddressDetails) TransformToAddress() Address
type BadRequestError ¶
func (BadRequestError) Error ¶
func (b BadRequestError) Error() string
type InternationalAddress ¶ added in v0.1800.0
type InternationalAddress struct { ApartmentNumber string `json:"apartmentNumber"` BuildingNumber string `json:"buildingNumber"` BuildingName string `json:"buildingName"` StreetName string `json:"streetName"` Town string `json:"town"` Region string `json:"region"` PostalCode string `json:"postalCode"` Country string `json:"country"` }
func (InternationalAddress) ToAddress ¶ added in v0.1800.0
func (a InternationalAddress) ToAddress() Address
type ResultSet ¶
type ResultSet struct {
AddressDetails AddressDetails `json:"DPA"`
}
Click to show internal directories.
Click to hide internal directories.