Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coords ¶
type Coords struct { ID int64 `json:"id"` Type string `json:"type"` Lat float64 `json:"lat"` Lon float64 `json:"lon"` }
Coords struct
type DenormalizedWay ¶
type DenormalizedWay struct { ID int64 `json:"id"` Type string `json:"type"` Hash string `json:"hash,omitempty"` Tags map[string]string `json:"tags,omitempty"` Centroid *LatLon `json:"centroid,omitempty"` LatLons []*LatLon `json:"nodes,omitempty"` }
DenormalizedWay struct
func (DenormalizedWay) PrintIndent ¶
func (way DenormalizedWay) PrintIndent()
PrintIndent json indented
type LatLon ¶
LatLon struct
type Node ¶
type Node struct { ID int64 `json:"id"` Type string `json:"type"` Hash string `json:"hash,omitempty"` Lat float64 `json:"lat"` Lon float64 `json:"lon"` Tags map[string]string `json:"tags,omitempty"` }
Node struct
func NodeFromParser ¶
NodeFromParser - generate a new JSON struct based off a parse struct
type Relation ¶
type Relation struct { ID int64 `json:"id"` Type string `json:"type"` Hash string `json:"hash,omitempty"` Tags map[string]string `json:"tags,omitempty"` Members []Member `json:"members"` }
Relation struct
func RelationFromParser ¶
RelationFromParser - generate a new JSON struct based off a parse struct
type Way ¶
type Way struct { ID int64 `json:"id"` Type string `json:"type"` Hash string `json:"hash,omitempty"` Tags map[string]string `json:"tags,omitempty"` Refs []int64 `json:"nodes"` }
Way struct
func DenormalizedWayFromParser ¶
DenormalizedWayFromParser - generate a new JSON struct based off a parse struct
func WayFromParser ¶
WayFromParser - generate a new JSON struct based off a parse struct
Click to show internal directories.
Click to hide internal directories.