Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct { ID int64 `xml:"id,attr"` Lat float32 `xml:"lat,attr"` Lon float32 `xml:"lon,attr"` Tags []Tag `xml:"tag"` }
Node is a single osm node
type NodeRef ¶
type NodeRef struct {
NodeID int64 `xml:"ref,attr"`
}
NodeRef is a single node reference in osm way
type Tag ¶
Tag represents a single osm tag. It is used by both way and edges.
type Way ¶
Way is a single osm way
Sample of pared xml:
<way id="4040481"> <nd ref="21380156"/> <nd ref="243068174"/> <tag k="highway" v="motorway"/> <tag k="int_ref" v="E 26"/> <tag k="lanes" v="2"/> <tag k="lit" v="no"/> <tag k="maxspeed" v="none"/> <tag k="oneway" v="yes"/> <tag k="ref" v="A 24"/> <tag k="source:lit" v="http://www.autobahn-bilder.de"/> <tag k="surface" v="asphalt"/> </way>
Click to show internal directories.
Click to hide internal directories.