ownmap

package
v0.0.0-...-14f1a14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2022 License: LGPL-2.1 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthOwnmap        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowOwnmap          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupOwnmap = fmt.Errorf("proto: unexpected end of group")
)
View Source
var OSMRelationMember_OSMMemberOrientation_name = map[int32]string{
	0: "OSM_MEMBER_ORIENTATION_UNKNOWN",
	1: "OSM_MEMBER_ORIENTATION_CLOCKWISE",
	2: "OSM_MEMBER_ORIENTATION_COUNTER_CLOCKWISE",
}
View Source
var OSMRelationMember_OSMMemberOrientation_value = map[string]int32{
	"OSM_MEMBER_ORIENTATION_UNKNOWN":           0,
	"OSM_MEMBER_ORIENTATION_CLOCKWISE":         1,
	"OSM_MEMBER_ORIENTATION_COUNTER_CLOCKWISE": 2,
}
View Source
var OSMRelationMember_OSMMemberType_name = map[int32]string{
	0: "OSM_MEMBER_TYPE_UNKNOWN",
	1: "OSM_MEMBER_TYPE_NODE",
	2: "OSM_MEMBER_TYPE_WAY",
	3: "OSM_MEMBER_TYPE_RELATION",
}
View Source
var OSMRelationMember_OSMMemberType_value = map[string]int32{
	"OSM_MEMBER_TYPE_UNKNOWN":  0,
	"OSM_MEMBER_TYPE_NODE":     1,
	"OSM_MEMBER_TYPE_WAY":      2,
	"OSM_MEMBER_TYPE_RELATION": 3,
}

Functions

func GetWholeWorldBounds

func GetWholeWorldBounds() osm.Bounds

func IsInBounds

func IsInBounds(bounds osm.Bounds, pointLat, pointLon float64) bool

IsInBounds tests if a point is inside a container

func IsTotallyInside

func IsTotallyInside(container osm.Bounds, item osm.Bounds) bool

func Overlaps

func Overlaps(container osm.Bounds, item osm.Bounds) bool

Overlaps checks whether an item is at least partially inside a container

Types

type DatasetInfo

type DatasetInfo struct {
	Bounds            *DatasetInfo_Bounds `protobuf:"bytes,1,opt,name=bounds,proto3" json:"bounds,omitempty"`
	ReplicationTimeMs uint64              `protobuf:"varint,2,opt,name=replication_time_ms,json=replicationTimeMs,proto3" json:"replicationTimeMs"`
}

func (*DatasetInfo) Descriptor

func (*DatasetInfo) Descriptor() ([]byte, []int)

func (*DatasetInfo) Equal

func (this *DatasetInfo) Equal(that interface{}) bool

func (*DatasetInfo) GetBounds

func (m *DatasetInfo) GetBounds() *DatasetInfo_Bounds

func (*DatasetInfo) GetReplicationTimeMs

func (m *DatasetInfo) GetReplicationTimeMs() uint64

func (*DatasetInfo) GoString

func (this *DatasetInfo) GoString() string

func (*DatasetInfo) Marshal

func (m *DatasetInfo) Marshal() (dAtA []byte, err error)

func (*DatasetInfo) MarshalTo

func (m *DatasetInfo) MarshalTo(dAtA []byte) (int, error)

func (*DatasetInfo) MarshalToSizedBuffer

func (m *DatasetInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DatasetInfo) ProtoMessage

func (*DatasetInfo) ProtoMessage()

func (*DatasetInfo) Reset

func (m *DatasetInfo) Reset()

func (*DatasetInfo) Size

func (m *DatasetInfo) Size() (n int)

func (*DatasetInfo) String

func (this *DatasetInfo) String() string

func (*DatasetInfo) Unmarshal

func (m *DatasetInfo) Unmarshal(dAtA []byte) error

func (*DatasetInfo) XXX_DiscardUnknown

func (m *DatasetInfo) XXX_DiscardUnknown()

func (*DatasetInfo) XXX_Marshal

func (m *DatasetInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DatasetInfo) XXX_Merge

func (m *DatasetInfo) XXX_Merge(src proto.Message)

func (*DatasetInfo) XXX_Size

func (m *DatasetInfo) XXX_Size() int

func (*DatasetInfo) XXX_Unmarshal

func (m *DatasetInfo) XXX_Unmarshal(b []byte) error

type DatasetInfo_Bounds

type DatasetInfo_Bounds struct {
	MinLat float64 `protobuf:"fixed64,1,opt,name=min_lat,json=minLat,proto3" json:"minLat"`
	MaxLat float64 `protobuf:"fixed64,2,opt,name=max_lat,json=maxLat,proto3" json:"maxLat"`
	MinLon float64 `protobuf:"fixed64,3,opt,name=min_lon,json=minLon,proto3" json:"minLon"`
	MaxLon float64 `protobuf:"fixed64,4,opt,name=max_lon,json=maxLon,proto3" json:"maxLon"`
}

func (*DatasetInfo_Bounds) Descriptor

func (*DatasetInfo_Bounds) Descriptor() ([]byte, []int)

func (*DatasetInfo_Bounds) Equal

func (this *DatasetInfo_Bounds) Equal(that interface{}) bool

func (*DatasetInfo_Bounds) GetMaxLat

func (m *DatasetInfo_Bounds) GetMaxLat() float64

func (*DatasetInfo_Bounds) GetMaxLon

func (m *DatasetInfo_Bounds) GetMaxLon() float64

func (*DatasetInfo_Bounds) GetMinLat

func (m *DatasetInfo_Bounds) GetMinLat() float64

func (*DatasetInfo_Bounds) GetMinLon

func (m *DatasetInfo_Bounds) GetMinLon() float64

func (*DatasetInfo_Bounds) GoString

func (this *DatasetInfo_Bounds) GoString() string

func (*DatasetInfo_Bounds) Marshal

func (m *DatasetInfo_Bounds) Marshal() (dAtA []byte, err error)

func (*DatasetInfo_Bounds) MarshalTo

func (m *DatasetInfo_Bounds) MarshalTo(dAtA []byte) (int, error)

func (*DatasetInfo_Bounds) MarshalToSizedBuffer

func (m *DatasetInfo_Bounds) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DatasetInfo_Bounds) ProtoMessage

func (*DatasetInfo_Bounds) ProtoMessage()

func (*DatasetInfo_Bounds) Reset

func (m *DatasetInfo_Bounds) Reset()

func (*DatasetInfo_Bounds) Size

func (m *DatasetInfo_Bounds) Size() (n int)

func (*DatasetInfo_Bounds) String

func (this *DatasetInfo_Bounds) String() string

func (*DatasetInfo_Bounds) ToOSMBounds

func (m *DatasetInfo_Bounds) ToOSMBounds() osm.Bounds

func (*DatasetInfo_Bounds) Unmarshal

func (m *DatasetInfo_Bounds) Unmarshal(dAtA []byte) error

func (*DatasetInfo_Bounds) XXX_DiscardUnknown

func (m *DatasetInfo_Bounds) XXX_DiscardUnknown()

func (*DatasetInfo_Bounds) XXX_Marshal

func (m *DatasetInfo_Bounds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DatasetInfo_Bounds) XXX_Merge

func (m *DatasetInfo_Bounds) XXX_Merge(src proto.Message)

func (*DatasetInfo_Bounds) XXX_Size

func (m *DatasetInfo_Bounds) XXX_Size() int

func (*DatasetInfo_Bounds) XXX_Unmarshal

func (m *DatasetInfo_Bounds) XXX_Unmarshal(b []byte) error

type IndexIDList

type IndexIDList struct {
	IDs []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
}

func (*IndexIDList) Descriptor

func (*IndexIDList) Descriptor() ([]byte, []int)

func (*IndexIDList) Equal

func (this *IndexIDList) Equal(that interface{}) bool

func (*IndexIDList) GetIDs

func (m *IndexIDList) GetIDs() []int64

func (*IndexIDList) GoString

func (this *IndexIDList) GoString() string

func (*IndexIDList) Marshal

func (m *IndexIDList) Marshal() (dAtA []byte, err error)

func (*IndexIDList) MarshalTo

func (m *IndexIDList) MarshalTo(dAtA []byte) (int, error)

func (*IndexIDList) MarshalToSizedBuffer

func (m *IndexIDList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IndexIDList) ProtoMessage

func (*IndexIDList) ProtoMessage()

func (*IndexIDList) Reset

func (m *IndexIDList) Reset()

func (*IndexIDList) Size

func (m *IndexIDList) Size() (n int)

func (*IndexIDList) String

func (this *IndexIDList) String() string

func (*IndexIDList) Unmarshal

func (m *IndexIDList) Unmarshal(dAtA []byte) error

func (*IndexIDList) XXX_DiscardUnknown

func (m *IndexIDList) XXX_DiscardUnknown()

func (*IndexIDList) XXX_Marshal

func (m *IndexIDList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IndexIDList) XXX_Merge

func (m *IndexIDList) XXX_Merge(src proto.Message)

func (*IndexIDList) XXX_Size

func (m *IndexIDList) XXX_Size() int

func (*IndexIDList) XXX_Unmarshal

func (m *IndexIDList) XXX_Unmarshal(b []byte) error

type KVPair

type KVPair struct {
	Key   []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

func (*KVPair) Descriptor

func (*KVPair) Descriptor() ([]byte, []int)

func (*KVPair) Equal

func (this *KVPair) Equal(that interface{}) bool

func (*KVPair) GetKey

func (m *KVPair) GetKey() []byte

func (*KVPair) GetValue

func (m *KVPair) GetValue() []byte

func (*KVPair) GoString

func (this *KVPair) GoString() string

func (*KVPair) Marshal

func (m *KVPair) Marshal() (dAtA []byte, err error)

func (*KVPair) MarshalTo

func (m *KVPair) MarshalTo(dAtA []byte) (int, error)

func (*KVPair) MarshalToSizedBuffer

func (m *KVPair) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*KVPair) ProtoMessage

func (*KVPair) ProtoMessage()

func (*KVPair) Reset

func (m *KVPair) Reset()

func (*KVPair) Size

func (m *KVPair) Size() (n int)

func (*KVPair) String

func (this *KVPair) String() string

func (*KVPair) Unmarshal

func (m *KVPair) Unmarshal(dAtA []byte) error

func (*KVPair) XXX_DiscardUnknown

func (m *KVPair) XXX_DiscardUnknown()

func (*KVPair) XXX_Marshal

func (m *KVPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KVPair) XXX_Merge

func (m *KVPair) XXX_Merge(src proto.Message)

func (*KVPair) XXX_Size

func (m *KVPair) XXX_Size() int

func (*KVPair) XXX_Unmarshal

func (m *KVPair) XXX_Unmarshal(b []byte) error

type Location

type Location struct {
	Lat float64 `protobuf:"fixed64,1,opt,name=lat,proto3" json:"lat,omitempty"`
	Lon float64 `protobuf:"fixed64,2,opt,name=lon,proto3" json:"lon,omitempty"`
}

func GetPointsFromNodes

func GetPointsFromNodes(nodes []*OSMNode) []*Location

func (*Location) Descriptor

func (*Location) Descriptor() ([]byte, []int)

func (*Location) Equal

func (this *Location) Equal(that interface{}) bool

func (*Location) GetLat

func (m *Location) GetLat() float64

func (*Location) GetLon

func (m *Location) GetLon() float64

func (*Location) GoString

func (this *Location) GoString() string

func (*Location) Marshal

func (m *Location) Marshal() (dAtA []byte, err error)

func (*Location) MarshalTo

func (m *Location) MarshalTo(dAtA []byte) (int, error)

func (*Location) MarshalToSizedBuffer

func (m *Location) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) Reset

func (m *Location) Reset()

func (*Location) Size

func (m *Location) Size() (n int)

func (*Location) String

func (this *Location) String() string

func (*Location) Unmarshal

func (m *Location) Unmarshal(dAtA []byte) error

func (*Location) XXX_DiscardUnknown

func (m *Location) XXX_DiscardUnknown()

func (*Location) XXX_Marshal

func (m *Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Location) XXX_Merge

func (m *Location) XXX_Merge(src proto.Message)

func (*Location) XXX_Size

func (m *Location) XXX_Size() int

func (*Location) XXX_Unmarshal

func (m *Location) XXX_Unmarshal(b []byte) error

type MapData

type MapData struct {
	Nodes []*osm.Node
}

type OSMNode

type OSMNode struct {
	ID   int64     `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Tags []*OSMTag `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags,omitempty"`
	Lat  float64   `protobuf:"fixed64,3,opt,name=lat,proto3" json:"lat,omitempty"`
	Lon  float64   `protobuf:"fixed64,4,opt,name=lon,proto3" json:"lon,omitempty"`
}

func (*OSMNode) Descriptor

func (*OSMNode) Descriptor() ([]byte, []int)

func (*OSMNode) Equal

func (this *OSMNode) Equal(that interface{}) bool

func (*OSMNode) GetID

func (m *OSMNode) GetID() int64

func (*OSMNode) GetLat

func (m *OSMNode) GetLat() float64

func (*OSMNode) GetLon

func (m *OSMNode) GetLon() float64

func (*OSMNode) GetTags

func (m *OSMNode) GetTags() []*OSMTag

func (*OSMNode) GoString

func (this *OSMNode) GoString() string

func (*OSMNode) Marshal

func (m *OSMNode) Marshal() (dAtA []byte, err error)

func (*OSMNode) MarshalTo

func (m *OSMNode) MarshalTo(dAtA []byte) (int, error)

func (*OSMNode) MarshalToSizedBuffer

func (m *OSMNode) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*OSMNode) OSMObjectID

func (n *OSMNode) OSMObjectID() int64

func (*OSMNode) ProtoMessage

func (*OSMNode) ProtoMessage()

func (*OSMNode) Reset

func (m *OSMNode) Reset()

func (*OSMNode) Size

func (m *OSMNode) Size() (n int)

func (*OSMNode) String

func (this *OSMNode) String() string

func (*OSMNode) Unmarshal

func (m *OSMNode) Unmarshal(dAtA []byte) error

func (*OSMNode) XXX_DiscardUnknown

func (m *OSMNode) XXX_DiscardUnknown()

func (*OSMNode) XXX_Marshal

func (m *OSMNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OSMNode) XXX_Merge

func (m *OSMNode) XXX_Merge(src proto.Message)

func (*OSMNode) XXX_Size

func (m *OSMNode) XXX_Size() int

func (*OSMNode) XXX_Unmarshal

func (m *OSMNode) XXX_Unmarshal(b []byte) error

type OSMObject

type OSMObject interface {
	OSMObjectID() int64
	GetTags() []*OSMTag // "GetTags" is a protoc-generated method (Tags() is not)
}

type OSMRelation

type OSMRelation struct {
	ID      int64                `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Tags    []*OSMTag            `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags,omitempty"`
	Members []*OSMRelationMember `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"`
}

func NewMapmakerRelationFromOSMRelation

func NewMapmakerRelationFromOSMRelation(osmRelation *osm.Relation) (*OSMRelation, errorsx.Error)

func (*OSMRelation) Descriptor

func (*OSMRelation) Descriptor() ([]byte, []int)

func (*OSMRelation) Equal

func (this *OSMRelation) Equal(that interface{}) bool

func (*OSMRelation) GetID

func (m *OSMRelation) GetID() int64

func (*OSMRelation) GetMembers

func (m *OSMRelation) GetMembers() []*OSMRelationMember

func (*OSMRelation) GetTags

func (m *OSMRelation) GetTags() []*OSMTag

func (*OSMRelation) GoString

func (this *OSMRelation) GoString() string

func (*OSMRelation) Marshal

func (m *OSMRelation) Marshal() (dAtA []byte, err error)

func (*OSMRelation) MarshalTo

func (m *OSMRelation) MarshalTo(dAtA []byte) (int, error)

func (*OSMRelation) MarshalToSizedBuffer

func (m *OSMRelation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*OSMRelation) OSMObjectID

func (r *OSMRelation) OSMObjectID() int64

func (*OSMRelation) ProtoMessage

func (*OSMRelation) ProtoMessage()

func (*OSMRelation) Reset

func (m *OSMRelation) Reset()

func (*OSMRelation) Size

func (m *OSMRelation) Size() (n int)

func (*OSMRelation) String

func (this *OSMRelation) String() string

func (*OSMRelation) Unmarshal

func (m *OSMRelation) Unmarshal(dAtA []byte) error

func (*OSMRelation) XXX_DiscardUnknown

func (m *OSMRelation) XXX_DiscardUnknown()

func (*OSMRelation) XXX_Marshal

func (m *OSMRelation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OSMRelation) XXX_Merge

func (m *OSMRelation) XXX_Merge(src proto.Message)

func (*OSMRelation) XXX_Size

func (m *OSMRelation) XXX_Size() int

func (*OSMRelation) XXX_Unmarshal

func (m *OSMRelation) XXX_Unmarshal(b []byte) error

type OSMRelationMember

type OSMRelationMember struct {
	ObjectID    int64                                  `protobuf:"varint,1,opt,name=object_id,json=objectId,proto3" json:"objectId"`
	MemberType  OSMRelationMember_OSMMemberType        `protobuf:"varint,2,opt,name=member_type,json=memberType,proto3,enum=ownmap.OSMRelationMember_OSMMemberType" json:"memberType"`
	Role        string                                 `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"`
	Orientation OSMRelationMember_OSMMemberOrientation `` /* 127-byte string literal not displayed */
}

func (*OSMRelationMember) Descriptor

func (*OSMRelationMember) Descriptor() ([]byte, []int)

func (*OSMRelationMember) Equal

func (this *OSMRelationMember) Equal(that interface{}) bool

func (*OSMRelationMember) GetMemberType

func (*OSMRelationMember) GetObjectID

func (m *OSMRelationMember) GetObjectID() int64

func (*OSMRelationMember) GetOrientation

func (*OSMRelationMember) GetRole

func (m *OSMRelationMember) GetRole() string

func (*OSMRelationMember) GoString

func (this *OSMRelationMember) GoString() string

func (*OSMRelationMember) Marshal

func (m *OSMRelationMember) Marshal() (dAtA []byte, err error)

func (*OSMRelationMember) MarshalTo

func (m *OSMRelationMember) MarshalTo(dAtA []byte) (int, error)

func (*OSMRelationMember) MarshalToSizedBuffer

func (m *OSMRelationMember) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*OSMRelationMember) ProtoMessage

func (*OSMRelationMember) ProtoMessage()

func (*OSMRelationMember) Reset

func (m *OSMRelationMember) Reset()

func (*OSMRelationMember) Size

func (m *OSMRelationMember) Size() (n int)

func (*OSMRelationMember) String

func (this *OSMRelationMember) String() string

func (*OSMRelationMember) Unmarshal

func (m *OSMRelationMember) Unmarshal(dAtA []byte) error

func (*OSMRelationMember) XXX_DiscardUnknown

func (m *OSMRelationMember) XXX_DiscardUnknown()

func (*OSMRelationMember) XXX_Marshal

func (m *OSMRelationMember) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OSMRelationMember) XXX_Merge

func (m *OSMRelationMember) XXX_Merge(src proto.Message)

func (*OSMRelationMember) XXX_Size

func (m *OSMRelationMember) XXX_Size() int

func (*OSMRelationMember) XXX_Unmarshal

func (m *OSMRelationMember) XXX_Unmarshal(b []byte) error

type OSMRelationMember_OSMMemberOrientation

type OSMRelationMember_OSMMemberOrientation int32
const (
	OSM_MEMBER_ORIENTATION_UNKNOWN           OSMRelationMember_OSMMemberOrientation = 0
	OSM_MEMBER_ORIENTATION_CLOCKWISE         OSMRelationMember_OSMMemberOrientation = 1
	OSM_MEMBER_ORIENTATION_COUNTER_CLOCKWISE OSMRelationMember_OSMMemberOrientation = 2
)

func (OSMRelationMember_OSMMemberOrientation) EnumDescriptor

func (OSMRelationMember_OSMMemberOrientation) EnumDescriptor() ([]byte, []int)

func (OSMRelationMember_OSMMemberOrientation) String

type OSMRelationMember_OSMMemberType

type OSMRelationMember_OSMMemberType int32
const (
	OSM_MEMBER_TYPE_UNKNOWN  OSMRelationMember_OSMMemberType = 0
	OSM_MEMBER_TYPE_NODE     OSMRelationMember_OSMMemberType = 1
	OSM_MEMBER_TYPE_WAY      OSMRelationMember_OSMMemberType = 2
	OSM_MEMBER_TYPE_RELATION OSMRelationMember_OSMMemberType = 3
)

func (OSMRelationMember_OSMMemberType) EnumDescriptor

func (OSMRelationMember_OSMMemberType) EnumDescriptor() ([]byte, []int)

func (OSMRelationMember_OSMMemberType) String

type OSMTag

type OSMTag struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

func NewMapmakerTagsFromOSMTags

func NewMapmakerTagsFromOSMTags(osmTags osm.Tags) []*OSMTag

func (*OSMTag) Descriptor

func (*OSMTag) Descriptor() ([]byte, []int)

func (*OSMTag) Equal

func (this *OSMTag) Equal(that interface{}) bool

func (*OSMTag) GetKey

func (m *OSMTag) GetKey() string

func (*OSMTag) GetValue

func (m *OSMTag) GetValue() string

func (*OSMTag) GoString

func (this *OSMTag) GoString() string

func (*OSMTag) Marshal

func (m *OSMTag) Marshal() (dAtA []byte, err error)

func (*OSMTag) MarshalTo

func (m *OSMTag) MarshalTo(dAtA []byte) (int, error)

func (*OSMTag) MarshalToSizedBuffer

func (m *OSMTag) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*OSMTag) ProtoMessage

func (*OSMTag) ProtoMessage()

func (*OSMTag) Reset

func (m *OSMTag) Reset()

func (*OSMTag) Size

func (m *OSMTag) Size() (n int)

func (*OSMTag) String

func (this *OSMTag) String() string

func (*OSMTag) Unmarshal

func (m *OSMTag) Unmarshal(dAtA []byte) error

func (*OSMTag) XXX_DiscardUnknown

func (m *OSMTag) XXX_DiscardUnknown()

func (*OSMTag) XXX_Marshal

func (m *OSMTag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OSMTag) XXX_Merge

func (m *OSMTag) XXX_Merge(src proto.Message)

func (*OSMTag) XXX_Size

func (m *OSMTag) XXX_Size() int

func (*OSMTag) XXX_Unmarshal

func (m *OSMTag) XXX_Unmarshal(b []byte) error

type OSMWay

type OSMWay struct {
	ID        int64       `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Tags      []*OSMTag   `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags,omitempty"`
	WayPoints []*WayPoint `protobuf:"bytes,3,rep,name=way_points,json=wayPoints,proto3" json:"wayPoints"`
}

func (*OSMWay) Descriptor

func (*OSMWay) Descriptor() ([]byte, []int)

func (*OSMWay) Equal

func (this *OSMWay) Equal(that interface{}) bool

func (*OSMWay) GetID

func (m *OSMWay) GetID() int64

func (*OSMWay) GetPoints

func (w *OSMWay) GetPoints() []*Location

func (*OSMWay) GetTags

func (m *OSMWay) GetTags() []*OSMTag

func (*OSMWay) GetWayPoints

func (m *OSMWay) GetWayPoints() []*WayPoint

func (*OSMWay) GoString

func (this *OSMWay) GoString() string

func (*OSMWay) Marshal

func (m *OSMWay) Marshal() (dAtA []byte, err error)

func (*OSMWay) MarshalTo

func (m *OSMWay) MarshalTo(dAtA []byte) (int, error)

func (*OSMWay) MarshalToSizedBuffer

func (m *OSMWay) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*OSMWay) OSMObjectID

func (w *OSMWay) OSMObjectID() int64

func (*OSMWay) ProtoMessage

func (*OSMWay) ProtoMessage()

func (*OSMWay) Reset

func (m *OSMWay) Reset()

func (*OSMWay) Size

func (m *OSMWay) Size() (n int)

func (*OSMWay) String

func (this *OSMWay) String() string

func (*OSMWay) Unmarshal

func (m *OSMWay) Unmarshal(dAtA []byte) error

func (*OSMWay) XXX_DiscardUnknown

func (m *OSMWay) XXX_DiscardUnknown()

func (*OSMWay) XXX_Marshal

func (m *OSMWay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OSMWay) XXX_Merge

func (m *OSMWay) XXX_Merge(src proto.Message)

func (*OSMWay) XXX_Size

func (m *OSMWay) XXX_Size() int

func (*OSMWay) XXX_Unmarshal

func (m *OSMWay) XXX_Unmarshal(b []byte) error

type ObjectType

type ObjectType int
const (
	ObjectTypeUnknown  ObjectType = 0
	ObjectTypeNode     ObjectType = 1
	ObjectTypeWay      ObjectType = 2
	ObjectTypeRelation ObjectType = 3
)

type RelationData

type RelationData struct {
	RelationID int64
	Tags       []*OSMTag
	Members    []*RelationMemberData
}

func (*RelationData) GetTags

func (rd *RelationData) GetTags() []*OSMTag

func (*RelationData) OSMObjectID

func (rd *RelationData) OSMObjectID() int64

type RelationMemberData

type RelationMemberData struct {
	Role   string    // outer, inner ?
	Object OSMObject // *ownmap.OSMNode, *ownmap.OSMWay, *ownmap.OSMRelation
}

type TagKey

type TagKey string

type WayPoint

type WayPoint struct {
	NodeID int64     `protobuf:"varint,1,opt,name=node_id,json=nodeId,proto3" json:"nodeId"`
	Point  *Location `protobuf:"bytes,2,opt,name=point,proto3" json:"point,omitempty"`
}

func (*WayPoint) Descriptor

func (*WayPoint) Descriptor() ([]byte, []int)

func (*WayPoint) Equal

func (this *WayPoint) Equal(that interface{}) bool

func (*WayPoint) GetNodeID

func (m *WayPoint) GetNodeID() int64

func (*WayPoint) GetPoint

func (m *WayPoint) GetPoint() *Location

func (*WayPoint) GoString

func (this *WayPoint) GoString() string

func (*WayPoint) Marshal

func (m *WayPoint) Marshal() (dAtA []byte, err error)

func (*WayPoint) MarshalTo

func (m *WayPoint) MarshalTo(dAtA []byte) (int, error)

func (*WayPoint) MarshalToSizedBuffer

func (m *WayPoint) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WayPoint) ProtoMessage

func (*WayPoint) ProtoMessage()

func (*WayPoint) Reset

func (m *WayPoint) Reset()

func (*WayPoint) Size

func (m *WayPoint) Size() (n int)

func (*WayPoint) String

func (this *WayPoint) String() string

func (*WayPoint) Unmarshal

func (m *WayPoint) Unmarshal(dAtA []byte) error

func (*WayPoint) XXX_DiscardUnknown

func (m *WayPoint) XXX_DiscardUnknown()

func (*WayPoint) XXX_Marshal

func (m *WayPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WayPoint) XXX_Merge

func (m *WayPoint) XXX_Merge(src proto.Message)

func (*WayPoint) XXX_Size

func (m *WayPoint) XXX_Size() int

func (*WayPoint) XXX_Unmarshal

func (m *WayPoint) XXX_Unmarshal(b []byte) error

type ZoomLevel

type ZoomLevel float64
const (
	MinZoomLevel ZoomLevel = 0
	MaxZoomLevel ZoomLevel = 255
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL