2013-01-28 10:55:34 +04:00
|
|
|
package element
|
|
|
|
|
|
|
|
type Tags map[string]string
|
|
|
|
|
|
|
|
type OSMElem struct {
|
2013-02-12 22:45:49 +04:00
|
|
|
Id int64
|
2013-01-28 10:55:34 +04:00
|
|
|
Tags Tags
|
|
|
|
}
|
|
|
|
|
|
|
|
type Node struct {
|
2013-02-12 22:45:49 +04:00
|
|
|
Id int64
|
|
|
|
Tags Tags
|
2013-01-28 10:55:34 +04:00
|
|
|
Lat float64
|
|
|
|
Long float64
|
|
|
|
}
|
|
|
|
|
|
|
|
type Way struct {
|
2013-02-12 22:45:49 +04:00
|
|
|
Id int64
|
|
|
|
Tags Tags
|
|
|
|
Nodes []int64
|
2013-01-28 10:55:34 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
type MemberType int
|
|
|
|
|
|
|
|
const (
|
2013-02-12 22:45:49 +04:00
|
|
|
NODE MemberType = iota
|
|
|
|
WAY
|
|
|
|
RELATION
|
2013-01-28 10:55:34 +04:00
|
|
|
)
|
|
|
|
|
|
|
|
type Member struct {
|
2013-02-12 22:45:49 +04:00
|
|
|
Id int64
|
2013-01-28 10:55:34 +04:00
|
|
|
Type MemberType
|
|
|
|
Role string
|
|
|
|
}
|
|
|
|
|
|
|
|
type Relation struct {
|
2013-02-12 22:45:49 +04:00
|
|
|
Id int64
|
|
|
|
Tags Tags
|
2013-01-28 10:55:34 +04:00
|
|
|
Members []Member
|
|
|
|
}
|