Documentation ¶
Index ¶
- Variables
- func GetWholeWorldBounds() osm.Bounds
- func IsInBounds(bounds osm.Bounds, pointLat, pointLon float64) bool
- func IsTotallyInside(container osm.Bounds, item osm.Bounds) bool
- func Overlaps(container osm.Bounds, item osm.Bounds) bool
- type DatasetInfo
- func (*DatasetInfo) Descriptor() ([]byte, []int)
- func (this *DatasetInfo) Equal(that interface{}) bool
- func (m *DatasetInfo) GetBounds() *DatasetInfo_Bounds
- func (m *DatasetInfo) GetReplicationTimeMs() uint64
- func (this *DatasetInfo) GoString() string
- func (m *DatasetInfo) Marshal() (dAtA []byte, err error)
- func (m *DatasetInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *DatasetInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DatasetInfo) ProtoMessage()
- func (m *DatasetInfo) Reset()
- func (m *DatasetInfo) Size() (n int)
- func (this *DatasetInfo) String() string
- func (m *DatasetInfo) Unmarshal(dAtA []byte) error
- func (m *DatasetInfo) XXX_DiscardUnknown()
- func (m *DatasetInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DatasetInfo) XXX_Merge(src proto.Message)
- func (m *DatasetInfo) XXX_Size() int
- func (m *DatasetInfo) XXX_Unmarshal(b []byte) error
- type DatasetInfo_Bounds
- func (*DatasetInfo_Bounds) Descriptor() ([]byte, []int)
- func (this *DatasetInfo_Bounds) Equal(that interface{}) bool
- func (m *DatasetInfo_Bounds) GetMaxLat() float64
- func (m *DatasetInfo_Bounds) GetMaxLon() float64
- func (m *DatasetInfo_Bounds) GetMinLat() float64
- func (m *DatasetInfo_Bounds) GetMinLon() float64
- func (this *DatasetInfo_Bounds) GoString() string
- func (m *DatasetInfo_Bounds) Marshal() (dAtA []byte, err error)
- func (m *DatasetInfo_Bounds) MarshalTo(dAtA []byte) (int, error)
- func (m *DatasetInfo_Bounds) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DatasetInfo_Bounds) ProtoMessage()
- func (m *DatasetInfo_Bounds) Reset()
- func (m *DatasetInfo_Bounds) Size() (n int)
- func (this *DatasetInfo_Bounds) String() string
- func (m *DatasetInfo_Bounds) ToOSMBounds() osm.Bounds
- func (m *DatasetInfo_Bounds) Unmarshal(dAtA []byte) error
- func (m *DatasetInfo_Bounds) XXX_DiscardUnknown()
- func (m *DatasetInfo_Bounds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DatasetInfo_Bounds) XXX_Merge(src proto.Message)
- func (m *DatasetInfo_Bounds) XXX_Size() int
- func (m *DatasetInfo_Bounds) XXX_Unmarshal(b []byte) error
- type IndexIDList
- func (*IndexIDList) Descriptor() ([]byte, []int)
- func (this *IndexIDList) Equal(that interface{}) bool
- func (m *IndexIDList) GetIDs() []int64
- func (this *IndexIDList) GoString() string
- func (m *IndexIDList) Marshal() (dAtA []byte, err error)
- func (m *IndexIDList) MarshalTo(dAtA []byte) (int, error)
- func (m *IndexIDList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IndexIDList) ProtoMessage()
- func (m *IndexIDList) Reset()
- func (m *IndexIDList) Size() (n int)
- func (this *IndexIDList) String() string
- func (m *IndexIDList) Unmarshal(dAtA []byte) error
- func (m *IndexIDList) XXX_DiscardUnknown()
- func (m *IndexIDList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IndexIDList) XXX_Merge(src proto.Message)
- func (m *IndexIDList) XXX_Size() int
- func (m *IndexIDList) XXX_Unmarshal(b []byte) error
- type KVPair
- func (*KVPair) Descriptor() ([]byte, []int)
- func (this *KVPair) Equal(that interface{}) bool
- func (m *KVPair) GetKey() []byte
- func (m *KVPair) GetValue() []byte
- func (this *KVPair) GoString() string
- func (m *KVPair) Marshal() (dAtA []byte, err error)
- func (m *KVPair) MarshalTo(dAtA []byte) (int, error)
- func (m *KVPair) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*KVPair) ProtoMessage()
- func (m *KVPair) Reset()
- func (m *KVPair) Size() (n int)
- func (this *KVPair) String() string
- func (m *KVPair) Unmarshal(dAtA []byte) error
- func (m *KVPair) XXX_DiscardUnknown()
- func (m *KVPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KVPair) XXX_Merge(src proto.Message)
- func (m *KVPair) XXX_Size() int
- func (m *KVPair) XXX_Unmarshal(b []byte) error
- type Location
- func (*Location) Descriptor() ([]byte, []int)
- func (this *Location) Equal(that interface{}) bool
- func (m *Location) GetLat() float64
- func (m *Location) GetLon() float64
- func (this *Location) GoString() string
- func (m *Location) Marshal() (dAtA []byte, err error)
- func (m *Location) MarshalTo(dAtA []byte) (int, error)
- func (m *Location) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Location) ProtoMessage()
- func (m *Location) Reset()
- func (m *Location) Size() (n int)
- func (this *Location) String() string
- func (m *Location) Unmarshal(dAtA []byte) error
- func (m *Location) XXX_DiscardUnknown()
- func (m *Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Location) XXX_Merge(src proto.Message)
- func (m *Location) XXX_Size() int
- func (m *Location) XXX_Unmarshal(b []byte) error
- type MapData
- type OSMNode
- func (*OSMNode) Descriptor() ([]byte, []int)
- func (this *OSMNode) Equal(that interface{}) bool
- func (m *OSMNode) GetID() int64
- func (m *OSMNode) GetLat() float64
- func (m *OSMNode) GetLon() float64
- func (m *OSMNode) GetTags() []*OSMTag
- func (this *OSMNode) GoString() string
- func (m *OSMNode) Marshal() (dAtA []byte, err error)
- func (m *OSMNode) MarshalTo(dAtA []byte) (int, error)
- func (m *OSMNode) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (n *OSMNode) OSMObjectID() int64
- func (*OSMNode) ProtoMessage()
- func (m *OSMNode) Reset()
- func (m *OSMNode) Size() (n int)
- func (this *OSMNode) String() string
- func (m *OSMNode) Unmarshal(dAtA []byte) error
- func (m *OSMNode) XXX_DiscardUnknown()
- func (m *OSMNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OSMNode) XXX_Merge(src proto.Message)
- func (m *OSMNode) XXX_Size() int
- func (m *OSMNode) XXX_Unmarshal(b []byte) error
- type OSMObject
- type OSMRelation
- func (*OSMRelation) Descriptor() ([]byte, []int)
- func (this *OSMRelation) Equal(that interface{}) bool
- func (m *OSMRelation) GetID() int64
- func (m *OSMRelation) GetMembers() []*OSMRelationMember
- func (m *OSMRelation) GetTags() []*OSMTag
- func (this *OSMRelation) GoString() string
- func (m *OSMRelation) Marshal() (dAtA []byte, err error)
- func (m *OSMRelation) MarshalTo(dAtA []byte) (int, error)
- func (m *OSMRelation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (r *OSMRelation) OSMObjectID() int64
- func (*OSMRelation) ProtoMessage()
- func (m *OSMRelation) Reset()
- func (m *OSMRelation) Size() (n int)
- func (this *OSMRelation) String() string
- func (m *OSMRelation) Unmarshal(dAtA []byte) error
- func (m *OSMRelation) XXX_DiscardUnknown()
- func (m *OSMRelation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OSMRelation) XXX_Merge(src proto.Message)
- func (m *OSMRelation) XXX_Size() int
- func (m *OSMRelation) XXX_Unmarshal(b []byte) error
- type OSMRelationMember
- func (*OSMRelationMember) Descriptor() ([]byte, []int)
- func (this *OSMRelationMember) Equal(that interface{}) bool
- func (m *OSMRelationMember) GetMemberType() OSMRelationMember_OSMMemberType
- func (m *OSMRelationMember) GetObjectID() int64
- func (m *OSMRelationMember) GetOrientation() OSMRelationMember_OSMMemberOrientation
- func (m *OSMRelationMember) GetRole() string
- func (this *OSMRelationMember) GoString() string
- func (m *OSMRelationMember) Marshal() (dAtA []byte, err error)
- func (m *OSMRelationMember) MarshalTo(dAtA []byte) (int, error)
- func (m *OSMRelationMember) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OSMRelationMember) ProtoMessage()
- func (m *OSMRelationMember) Reset()
- func (m *OSMRelationMember) Size() (n int)
- func (this *OSMRelationMember) String() string
- func (m *OSMRelationMember) Unmarshal(dAtA []byte) error
- func (m *OSMRelationMember) XXX_DiscardUnknown()
- func (m *OSMRelationMember) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OSMRelationMember) XXX_Merge(src proto.Message)
- func (m *OSMRelationMember) XXX_Size() int
- func (m *OSMRelationMember) XXX_Unmarshal(b []byte) error
- type OSMRelationMember_OSMMemberOrientation
- type OSMRelationMember_OSMMemberType
- type OSMTag
- func (*OSMTag) Descriptor() ([]byte, []int)
- func (this *OSMTag) Equal(that interface{}) bool
- func (m *OSMTag) GetKey() string
- func (m *OSMTag) GetValue() string
- func (this *OSMTag) GoString() string
- func (m *OSMTag) Marshal() (dAtA []byte, err error)
- func (m *OSMTag) MarshalTo(dAtA []byte) (int, error)
- func (m *OSMTag) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OSMTag) ProtoMessage()
- func (m *OSMTag) Reset()
- func (m *OSMTag) Size() (n int)
- func (this *OSMTag) String() string
- func (m *OSMTag) Unmarshal(dAtA []byte) error
- func (m *OSMTag) XXX_DiscardUnknown()
- func (m *OSMTag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OSMTag) XXX_Merge(src proto.Message)
- func (m *OSMTag) XXX_Size() int
- func (m *OSMTag) XXX_Unmarshal(b []byte) error
- type OSMWay
- func (*OSMWay) Descriptor() ([]byte, []int)
- func (this *OSMWay) Equal(that interface{}) bool
- func (m *OSMWay) GetID() int64
- func (w *OSMWay) GetPoints() []*Location
- func (m *OSMWay) GetTags() []*OSMTag
- func (m *OSMWay) GetWayPoints() []*WayPoint
- func (this *OSMWay) GoString() string
- func (m *OSMWay) Marshal() (dAtA []byte, err error)
- func (m *OSMWay) MarshalTo(dAtA []byte) (int, error)
- func (m *OSMWay) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (w *OSMWay) OSMObjectID() int64
- func (*OSMWay) ProtoMessage()
- func (m *OSMWay) Reset()
- func (m *OSMWay) Size() (n int)
- func (this *OSMWay) String() string
- func (m *OSMWay) Unmarshal(dAtA []byte) error
- func (m *OSMWay) XXX_DiscardUnknown()
- func (m *OSMWay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OSMWay) XXX_Merge(src proto.Message)
- func (m *OSMWay) XXX_Size() int
- func (m *OSMWay) XXX_Unmarshal(b []byte) error
- type ObjectType
- type RelationData
- type RelationMemberData
- type TagKey
- type WayPoint
- func (*WayPoint) Descriptor() ([]byte, []int)
- func (this *WayPoint) Equal(that interface{}) bool
- func (m *WayPoint) GetNodeID() int64
- func (m *WayPoint) GetPoint() *Location
- func (this *WayPoint) GoString() string
- func (m *WayPoint) Marshal() (dAtA []byte, err error)
- func (m *WayPoint) MarshalTo(dAtA []byte) (int, error)
- func (m *WayPoint) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WayPoint) ProtoMessage()
- func (m *WayPoint) Reset()
- func (m *WayPoint) Size() (n int)
- func (this *WayPoint) String() string
- func (m *WayPoint) Unmarshal(dAtA []byte) error
- func (m *WayPoint) XXX_DiscardUnknown()
- func (m *WayPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WayPoint) XXX_Merge(src proto.Message)
- func (m *WayPoint) XXX_Size() int
- func (m *WayPoint) XXX_Unmarshal(b []byte) error
- type ZoomLevel
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 IsInBounds ¶
IsInBounds tests if a point is 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) 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) 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) MarshalToSizedBuffer ¶
func (*KVPair) ProtoMessage ¶
func (*KVPair) ProtoMessage()
func (*KVPair) XXX_DiscardUnknown ¶
func (m *KVPair) XXX_DiscardUnknown()
func (*KVPair) XXX_Marshal ¶
func (*KVPair) XXX_Unmarshal ¶
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 (*Location) Descriptor ¶
func (*Location) MarshalToSizedBuffer ¶
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) XXX_DiscardUnknown ¶
func (m *Location) XXX_DiscardUnknown()
func (*Location) XXX_Marshal ¶
func (*Location) XXX_Unmarshal ¶
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) MarshalToSizedBuffer ¶
func (*OSMNode) OSMObjectID ¶
func (*OSMNode) ProtoMessage ¶
func (*OSMNode) ProtoMessage()
func (*OSMNode) XXX_DiscardUnknown ¶
func (m *OSMNode) XXX_DiscardUnknown()
func (*OSMNode) XXX_Marshal ¶
func (*OSMNode) XXX_Unmarshal ¶
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) 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 (m *OSMRelationMember) GetMemberType() OSMRelationMember_OSMMemberType
func (*OSMRelationMember) GetObjectID ¶
func (m *OSMRelationMember) GetObjectID() int64
func (*OSMRelationMember) GetOrientation ¶
func (m *OSMRelationMember) GetOrientation() OSMRelationMember_OSMMemberOrientation
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 ¶
func (x OSMRelationMember_OSMMemberOrientation) String() 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 ¶
func (x OSMRelationMember_OSMMemberType) String() 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 (*OSMTag) Descriptor ¶
func (*OSMTag) MarshalToSizedBuffer ¶
func (*OSMTag) ProtoMessage ¶
func (*OSMTag) ProtoMessage()
func (*OSMTag) XXX_DiscardUnknown ¶
func (m *OSMTag) XXX_DiscardUnknown()
func (*OSMTag) XXX_Marshal ¶
func (*OSMTag) XXX_Unmarshal ¶
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) GetWayPoints ¶
func (*OSMWay) MarshalToSizedBuffer ¶
func (*OSMWay) OSMObjectID ¶
func (*OSMWay) ProtoMessage ¶
func (*OSMWay) ProtoMessage()
func (*OSMWay) XXX_DiscardUnknown ¶
func (m *OSMWay) XXX_DiscardUnknown()
func (*OSMWay) XXX_Marshal ¶
func (*OSMWay) XXX_Unmarshal ¶
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 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) MarshalToSizedBuffer ¶
func (*WayPoint) ProtoMessage ¶
func (*WayPoint) ProtoMessage()
func (*WayPoint) XXX_DiscardUnknown ¶
func (m *WayPoint) XXX_DiscardUnknown()
func (*WayPoint) XXX_Marshal ¶
func (*WayPoint) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.