location

package
v0.0.0-...-e2fe045 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPLZ

func CheckPLZ(plz string, db *database.DB) (bool, error)

func GetAgsByPlz

func GetAgsByPlz(plz string, db *database.DB) (string, error)

Types

type Location

type Location struct {
	Ags          string         `db:"ags"`
	Land         string         `db:"land"`
	LandName     string         `db:"land_name"`
	Bezirk       sql.NullString `db:"bezirk"`
	BezirkName   sql.NullString `db:"bezirk_name"`
	Kreis        sql.NullString `db:"kreis"`
	KreisName    sql.NullString `db:"kreis_name"`
	Verbund      sql.NullString `db:"verbund"`
	VerbundName  sql.NullString `db:"verbund_name"`
	Gemeinde     sql.NullString `db:"gemeinde"`
	GemeindeName sql.NullString `db:"gemeinde_name"`
	Typ          uint8
}

func GetFromAGS

func GetFromAGS(db *database.DB, ags string) (*Location, error)

func (*Location) PrintHigherNames

func (location *Location) PrintHigherNames() []string

func (*Location) PrintSelectedName

func (location *Location) PrintSelectedName() string

func (*Location) ToNameArray

func (location *Location) ToNameArray() []string

type LocationOption

type LocationOption struct {
	Ags  string
	Name sql.NullString
}

func GetOptionList

func GetOptionList(db *database.DB, ags string) ([]LocationOption, error)

Jump to

Keyboard shortcuts

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