Documentation
¶
Overview ¶
Package shared is used by annotate and the internal core. External usage of this package is for advanced use only.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Child ¶
type Child struct {
ID osm.FeatureID
Version int
ChangesetID osm.ChangesetID
// VersionIndex is the index of the version if sorted from lowest to highest.
// This is necessary since version don't have to start at 1 or be sequential.
VersionIndex int
Timestamp time.Time
Committed time.Time
// for nodes
Lon, Lat float64
// for ways
Way *osm.Way
ReverseOfPrevious bool
// moving the visible bool here decreases the struct size from
// size 120 (size class 128) to 112 (size class 112).
Visible bool
}
A Child represents a node, way or relation that is a dependent for annotating ways or relations.
func FromRelation ¶
FromRelation converts a way to a child.
Click to show internal directories.
Click to hide internal directories.