serviceguiden

package
v0.0.0-...-7e0f15d Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	Id           string `json:"id"`
	Name         string `json:"name"`
	Organization struct {
		Id   string `json:"id"`
		Name string `json:"name"`
	} `json:"organization"`
	ServiceTypes []struct {
		Id         string `json:"id"`
		Name       string `json:"name"`
		Attributes []struct {
			Name   string `json:"name"`
			Values []struct {
				Name string `json:"name"`
			} `json:"values"`
		} `json:"attributes"`
	} `json:"serviceTypes"`
	Position struct {
		Latitude  float64 `json:"latitude"`
		Longitude float64 `json:"longitude"`
	} `json:"position"`
	PrimaryArea      string `json:"primaryArea"`
	CityArea         string `json:"cityArea"`
	SubCityArea      string `json:"subCityArea"`
	SiteUrl          string `json:"siteUrl"`
	AccessibilityUrl string `json:"accessibilityUrl"`
	Address          string `json:"visitingAddress"`
	PostalAddress    struct {
		Street     string `json:"street"`
		City       string `json:"city"`
		PostalCode string `json:"postalCode"`
	} `json:"postalAddress"`
	Deleted              bool   `json:"deleted"`
	Description          string `json:"description"`
	DistrictOrganization string `json:"districtOrganization"`
	BusinessId           int64  `json:"businessId"`
}

func (Content) AreaServed

func (c Content) AreaServed() string

func (Content) BeachTypes

func (c Content) BeachTypes() []string

func (Content) Inriktning

func (c Content) Inriktning() string

type ServiceGuidenClient

type ServiceGuidenClient interface {
	Badplatser(ctx context.Context) ([]Content, error)
}

func New

func New(url, filePath string) ServiceGuidenClient

Jump to

Keyboard shortcuts

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