osm

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bounds

type Bounds struct {
	MaxLat float64 `xml:"maxlat,attr"`
	MaxLon float64 `xml:"maxlon,attr"`
	MinLat float64 `xml:"minlat,attr"`
	MinLon float64 `xml:"minlon,attr"`
}

type Member

type Member struct {
	Ref  int    `xml:"ref,attr"`
	Role string `xml:"role,attr"`
	Type string `xml:"type,attr"`
}

type Nd

type Nd struct {
	Ref int `xml:"ref,attr"`
}

type Node

type Node struct {
	ID        int       `xml:"id,attr"`
	Lat       float64   `xml:"lat,attr"`
	Lon       float64   `xml:"lon,attr"`
	Timestamp time.Time `xml:"timestamp,attr"`
	Version   int       `xml:"version,attr"`
	Tag       []Tag     `xml:"tag"`
}

type OSM

type OSM struct {
	Bounds   Bounds     `xml:"bounds"`
	Node     []Node     `xml:"node"`
	Way      []Way      `xml:"way"`
	Relation []Relation `xml:"relation"`
}

type Relation

type Relation struct {
	ID        int       `xml:"id,attr"`
	Timestamp time.Time `xml:"timestamp,attr"`
	Version   int       `xml:"version,attr"`
	Member    []Member  `xml:"member"`
	Tag       []Tag     `xml:"tag"`
}

type Tag

type Tag struct {
	K string `xml:"k,attr"`
	V string `xml:"v,attr"`
}

type Way

type Way struct {
	ID        int       `xml:"id,attr"`
	Timestamp time.Time `xml:"timestamp,attr"`
	Version   int       `xml:"version,attr"`
	Nd        []Nd      `xml:"nd"`
	Tag       []Tag     `xml:"tag"`
}

Jump to

Keyboard shortcuts

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