Versions in this module Expand all Collapse all v1 v1.0.1 Jun 4, 2022 v1.0.0 Apr 16, 2021 Changes in this version + const DefaultBufferSize + const DefaultDecodedChannelLength + const DefaultInputChannelLength + const DefaultOutputChannelLength + const Degree + const E5 + const E6 + const E7 + const E8 + const E9 + const Radian + func DefaultNCpu() uint16 + type Angle s1.Angle + func (d Angle) EqualWithin(o Angle, eps Epsilon) bool + type BoundingBox struct + Bottom Degrees + Left Degrees + Right Degrees + Top Degrees + func (b BoundingBox) Contains(lon Degrees, lat Degrees) bool + func (b BoundingBox) EqualWithin(o BoundingBox, eps Epsilon) bool + func (b BoundingBox) String() string + type Decoder struct + Header Header + func NewDecoder(ctx context.Context, reader io.Reader, opts ...DecoderOption) (*Decoder, error) + func (d *Decoder) Close() + func (d *Decoder) Decode() (interface{}, error) + type DecoderOption func(*decoderOptions) + func WithDecodedChannelLength(l int) DecoderOption + func WithInputChannelLength(l int) DecoderOption + func WithNCpus(n uint16) DecoderOption + func WithOutputChannelLength(l int) DecoderOption + func WithProtoBufferSize(s int) DecoderOption + type Degrees float64 + func ParseDegrees(s string) (Degrees, error) + func (d Degrees) Angle() Angle + func (d Degrees) E5() int32 + func (d Degrees) E6() int32 + func (d Degrees) E7() int32 + func (d Degrees) EqualWithin(o Degrees, eps Epsilon) bool + func (d Degrees) String() string + type ElementType int + const NODE + const RELATION + const WAY + func (i ElementType) String() string + type Epsilon float64 + type Header struct + BoundingBox BoundingBox + OptionalFeatures []string + OsmosisReplicationBaseURL string + OsmosisReplicationSequenceNumber int64 + OsmosisReplicationTimestamp time.Time + RequiredFeatures []string + Source string + WritingProgram string + type Info struct + Changeset int64 + Timestamp time.Time + UID int32 + User string + Version int32 + Visible bool + type Member struct + ID uint64 + Role string + Type ElementType + type Node struct + ID uint64 + Info *Info + Lat Degrees + Lon Degrees + Tags map[string]string + type Relation struct + ID uint64 + Info *Info + Members []Member + Tags map[string]string + type Way struct + ID uint64 + Info *Info + NodeIDs []uint64 + Tags map[string]string