Documentation
¶
Index ¶
- Constants
- func NearbySearch(lat, lng float32, locationType string) ([]models.Location, error)
- func OrganisationsByPostcode(organisationType, postcode string) ([]models.Location, error)
- func OrganisationsFinder(organisationType, organisationId string) models.Location
- func ServicesByPostcode(serviceType, postcode string) ([]models.Location, error)
- func ServicesFinder(serviceType, serviceId string) models.Location
- type Entry
- type OrganisationXML
- type Result
- type ResultEntryXML
- type ResultFromPostcodeXML
- type ResultPostcodeXML
Constants ¶
View Source
const (
NHSBaseAPI = "https://v1.syndication.nhschoices.nhs.uk"
)
Variables ¶
This section is empty.
Functions ¶
func NearbySearch ¶
func OrganisationsByPostcode ¶
func OrganisationsFinder ¶
func ServicesByPostcode ¶
func ServicesFinder ¶
Types ¶
type Entry ¶
type Entry struct {
Id string `xml:"id"`
Content struct {
Service struct {
Name string `xml:"deliverer"`
Type struct {
Code string `xml:"code,attr"`
} `xml:"type"`
GeographicCoordinates struct {
Lat string `xml:"latitude"`
Lng string `xml:"longitude"`
} `xml:"geographicCoordinates"`
} `xml:"service"`
} `xml:"content"`
}
type OrganisationXML ¶
type ResultEntryXML ¶
type ResultFromPostcodeXML ¶
type ResultFromPostcodeXML struct {
Entries []ResultEntryXML `xml:"entry"`
}
type ResultPostcodeXML ¶
type ResultPostcodeXML struct {
Entries []Entry `xml:"entry"`
}
Click to show internal directories.
Click to hide internal directories.