Documentation ¶
Index ¶
- Variables
- type CompressMethod
- func (CompressMethod) Descriptor() protoreflect.EnumDescriptor
- func (x CompressMethod) Enum() *CompressMethod
- func (CompressMethod) EnumDescriptor() ([]byte, []int)deprecated
- func (x CompressMethod) Number() protoreflect.EnumNumber
- func (x CompressMethod) String() string
- func (CompressMethod) Type() protoreflect.EnumType
- type CompressedPolygon
- func (*CompressedPolygon) Descriptor() ([]byte, []int)deprecated
- func (x *CompressedPolygon) GetHoles() []*CompressedPolygon
- func (x *CompressedPolygon) GetPoints() []byte
- func (*CompressedPolygon) ProtoMessage()
- func (x *CompressedPolygon) ProtoReflect() protoreflect.Message
- func (x *CompressedPolygon) Reset()
- func (x *CompressedPolygon) String() string
- type CompressedTimezone
- func (*CompressedTimezone) Descriptor() ([]byte, []int)deprecated
- func (x *CompressedTimezone) GetData() []*CompressedPolygon
- func (x *CompressedTimezone) GetName() string
- func (*CompressedTimezone) ProtoMessage()
- func (x *CompressedTimezone) ProtoReflect() protoreflect.Message
- func (x *CompressedTimezone) Reset()
- func (x *CompressedTimezone) String() string
- type CompressedTimezones
- func (*CompressedTimezones) Descriptor() ([]byte, []int)deprecated
- func (x *CompressedTimezones) GetMethod() CompressMethod
- func (x *CompressedTimezones) GetTimezones() []*CompressedTimezone
- func (x *CompressedTimezones) GetVersion() string
- func (*CompressedTimezones) ProtoMessage()
- func (x *CompressedTimezones) ProtoReflect() protoreflect.Message
- func (x *CompressedTimezones) Reset()
- func (x *CompressedTimezones) String() string
- type Point
- type Polygon
- type PreindexTimezone
- func (*PreindexTimezone) Descriptor() ([]byte, []int)deprecated
- func (x *PreindexTimezone) GetName() string
- func (x *PreindexTimezone) GetX() int32
- func (x *PreindexTimezone) GetY() int32
- func (x *PreindexTimezone) GetZ() int32
- func (*PreindexTimezone) ProtoMessage()
- func (x *PreindexTimezone) ProtoReflect() protoreflect.Message
- func (x *PreindexTimezone) Reset()
- func (x *PreindexTimezone) String() string
- type PreindexTimezones
- func (*PreindexTimezones) Descriptor() ([]byte, []int)deprecated
- func (x *PreindexTimezones) GetAggZoom() int32
- func (x *PreindexTimezones) GetIdxZoom() int32
- func (x *PreindexTimezones) GetKeys() []*PreindexTimezone
- func (x *PreindexTimezones) GetVersion() string
- func (*PreindexTimezones) ProtoMessage()
- func (x *PreindexTimezones) ProtoReflect() protoreflect.Message
- func (x *PreindexTimezones) Reset()
- func (x *PreindexTimezones) String() string
- type Timezone
- type Timezones
- func (*Timezones) Descriptor() ([]byte, []int)deprecated
- func (x *Timezones) GetReduced() bool
- func (x *Timezones) GetTimezones() []*Timezone
- func (x *Timezones) GetVersion() string
- func (*Timezones) ProtoMessage()
- func (x *Timezones) ProtoReflect() protoreflect.Message
- func (x *Timezones) Reset()
- func (x *Timezones) String() string
Constants ¶
This section is empty.
Variables ¶
var ( CompressMethod_name = map[int32]string{ 0: "Unknown", 1: "Polyline", } CompressMethod_value = map[string]int32{ "Unknown": 0, "Polyline": 1, } )
Enum value maps for CompressMethod.
var File_pb_tzinfo_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CompressMethod ¶
type CompressMethod int32
const ( CompressMethod_Unknown CompressMethod = 0 CompressMethod_Polyline CompressMethod = 1 // https://developers.google.com/maps/documentation/utilities/polylinealgorithm )
func (CompressMethod) Descriptor ¶
func (CompressMethod) Descriptor() protoreflect.EnumDescriptor
func (CompressMethod) Enum ¶
func (x CompressMethod) Enum() *CompressMethod
func (CompressMethod) EnumDescriptor
deprecated
func (CompressMethod) EnumDescriptor() ([]byte, []int)
Deprecated: Use CompressMethod.Descriptor instead.
func (CompressMethod) Number ¶
func (x CompressMethod) Number() protoreflect.EnumNumber
func (CompressMethod) String ¶
func (x CompressMethod) String() string
func (CompressMethod) Type ¶
func (CompressMethod) Type() protoreflect.EnumType
type CompressedPolygon ¶
type CompressedPolygon struct { Points []byte `protobuf:"bytes,1,opt,name=points,proto3" json:"points,omitempty"` Holes []*CompressedPolygon `protobuf:"bytes,2,rep,name=holes,proto3" json:"holes,omitempty"` // contains filtered or unexported fields }
func (*CompressedPolygon) Descriptor
deprecated
func (*CompressedPolygon) Descriptor() ([]byte, []int)
Deprecated: Use CompressedPolygon.ProtoReflect.Descriptor instead.
func (*CompressedPolygon) GetHoles ¶
func (x *CompressedPolygon) GetHoles() []*CompressedPolygon
func (*CompressedPolygon) GetPoints ¶
func (x *CompressedPolygon) GetPoints() []byte
func (*CompressedPolygon) ProtoMessage ¶
func (*CompressedPolygon) ProtoMessage()
func (*CompressedPolygon) ProtoReflect ¶
func (x *CompressedPolygon) ProtoReflect() protoreflect.Message
func (*CompressedPolygon) Reset ¶
func (x *CompressedPolygon) Reset()
func (*CompressedPolygon) String ¶
func (x *CompressedPolygon) String() string
type CompressedTimezone ¶
type CompressedTimezone struct { Data []*CompressedPolygon `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
CompressedTimezonesItem designed for binary file as small as possible.
func (*CompressedTimezone) Descriptor
deprecated
func (*CompressedTimezone) Descriptor() ([]byte, []int)
Deprecated: Use CompressedTimezone.ProtoReflect.Descriptor instead.
func (*CompressedTimezone) GetData ¶
func (x *CompressedTimezone) GetData() []*CompressedPolygon
func (*CompressedTimezone) GetName ¶
func (x *CompressedTimezone) GetName() string
func (*CompressedTimezone) ProtoMessage ¶
func (*CompressedTimezone) ProtoMessage()
func (*CompressedTimezone) ProtoReflect ¶
func (x *CompressedTimezone) ProtoReflect() protoreflect.Message
func (*CompressedTimezone) Reset ¶
func (x *CompressedTimezone) Reset()
func (*CompressedTimezone) String ¶
func (x *CompressedTimezone) String() string
type CompressedTimezones ¶
type CompressedTimezones struct { Method CompressMethod `protobuf:"varint,1,opt,name=method,proto3,enum=pb.CompressMethod" json:"method,omitempty"` Timezones []*CompressedTimezone `protobuf:"bytes,2,rep,name=timezones,proto3" json:"timezones,omitempty"` Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*CompressedTimezones) Descriptor
deprecated
func (*CompressedTimezones) Descriptor() ([]byte, []int)
Deprecated: Use CompressedTimezones.ProtoReflect.Descriptor instead.
func (*CompressedTimezones) GetMethod ¶
func (x *CompressedTimezones) GetMethod() CompressMethod
func (*CompressedTimezones) GetTimezones ¶
func (x *CompressedTimezones) GetTimezones() []*CompressedTimezone
func (*CompressedTimezones) GetVersion ¶
func (x *CompressedTimezones) GetVersion() string
func (*CompressedTimezones) ProtoMessage ¶
func (*CompressedTimezones) ProtoMessage()
func (*CompressedTimezones) ProtoReflect ¶
func (x *CompressedTimezones) ProtoReflect() protoreflect.Message
func (*CompressedTimezones) Reset ¶
func (x *CompressedTimezones) Reset()
func (*CompressedTimezones) String ¶
func (x *CompressedTimezones) String() string
type Point ¶
type Point struct { Lng float32 `protobuf:"fixed32,1,opt,name=lng,proto3" json:"lng,omitempty"` Lat float32 `protobuf:"fixed32,2,opt,name=lat,proto3" json:"lat,omitempty"` // contains filtered or unexported fields }
Basic Point data define.
func (*Point) Descriptor
deprecated
func (*Point) ProtoMessage ¶
func (*Point) ProtoMessage()
func (*Point) ProtoReflect ¶
func (x *Point) ProtoReflect() protoreflect.Message
type Polygon ¶
type Polygon struct { Points []*Point `protobuf:"bytes,1,rep,name=points,proto3" json:"points,omitempty"` // define the "exterior ring" Holes []*Polygon `protobuf:"bytes,2,rep,name=holes,proto3" json:"holes,omitempty"` // define the "interior rings" as holes // contains filtered or unexported fields }
Define a polygon, mostly based on GeoJSON's Polygon define.
Excerpt from RFC-9476 section 'Polygon'
A linear ring is a closed LineString with four or more positions.
The first and last positions are equivalent, and they MUST contain identical values; their representation SHOULD also be identical.
A linear ring is the boundary of a surface or the boundary of a hole in a surface.
A linear ring MUST follow the right-hand rule with respect to the area it bounds, i.e., exterior rings are counterclockwise, and holes are clockwise.
Note: the GJ2008 specification did not discuss linear ring winding order. For backwards compatibility, parsers SHOULD NOT reject Polygons that do not follow the right-hand rule.
Though a linear ring is not explicitly represented as a GeoJSON geometry type, it leads to a canonical formulation of the Polygon geometry type definition as follows:
For type "Polygon", the "coordinates" member MUST be an array of linear ring coordinate arrays.
For Polygons with more than one of these rings, the first MUST be the exterior ring, and any others MUST be interior rings. The exterior ring bounds the surface, and the interior rings (if present) bound holes within the surface.
func (*Polygon) Descriptor
deprecated
func (*Polygon) ProtoMessage ¶
func (*Polygon) ProtoMessage()
func (*Polygon) ProtoReflect ¶
func (x *Polygon) ProtoReflect() protoreflect.Message
type PreindexTimezone ¶
type PreindexTimezone struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` X int32 `protobuf:"varint,2,opt,name=x,proto3" json:"x,omitempty"` Y int32 `protobuf:"varint,3,opt,name=y,proto3" json:"y,omitempty"` Z int32 `protobuf:"varint,4,opt,name=z,proto3" json:"z,omitempty"` // contains filtered or unexported fields }
PreindexTimezone tile item.
The X/Y/Z are OSM style like map tile index values.
func (*PreindexTimezone) Descriptor
deprecated
func (*PreindexTimezone) Descriptor() ([]byte, []int)
Deprecated: Use PreindexTimezone.ProtoReflect.Descriptor instead.
func (*PreindexTimezone) GetName ¶
func (x *PreindexTimezone) GetName() string
func (*PreindexTimezone) GetX ¶
func (x *PreindexTimezone) GetX() int32
func (*PreindexTimezone) GetY ¶
func (x *PreindexTimezone) GetY() int32
func (*PreindexTimezone) GetZ ¶
func (x *PreindexTimezone) GetZ() int32
func (*PreindexTimezone) ProtoMessage ¶
func (*PreindexTimezone) ProtoMessage()
func (*PreindexTimezone) ProtoReflect ¶
func (x *PreindexTimezone) ProtoReflect() protoreflect.Message
func (*PreindexTimezone) Reset ¶
func (x *PreindexTimezone) Reset()
func (*PreindexTimezone) String ¶
func (x *PreindexTimezone) String() string
type PreindexTimezones ¶
type PreindexTimezones struct { IdxZoom int32 `protobuf:"varint,1,opt,name=idxZoom,proto3" json:"idxZoom,omitempty"` // which zoom value the tiles generated AggZoom int32 `protobuf:"varint,2,opt,name=aggZoom,proto3" json:"aggZoom,omitempty"` // which zoom value the tiles merge up with. Keys []*PreindexTimezone `protobuf:"bytes,3,rep,name=keys,proto3" json:"keys,omitempty"` Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
PreindexTimezones is all preindex timezone's dumps.
func (*PreindexTimezones) Descriptor
deprecated
func (*PreindexTimezones) Descriptor() ([]byte, []int)
Deprecated: Use PreindexTimezones.ProtoReflect.Descriptor instead.
func (*PreindexTimezones) GetAggZoom ¶
func (x *PreindexTimezones) GetAggZoom() int32
func (*PreindexTimezones) GetIdxZoom ¶
func (x *PreindexTimezones) GetIdxZoom() int32
func (*PreindexTimezones) GetKeys ¶
func (x *PreindexTimezones) GetKeys() []*PreindexTimezone
func (*PreindexTimezones) GetVersion ¶
func (x *PreindexTimezones) GetVersion() string
func (*PreindexTimezones) ProtoMessage ¶
func (*PreindexTimezones) ProtoMessage()
func (*PreindexTimezones) ProtoReflect ¶
func (x *PreindexTimezones) ProtoReflect() protoreflect.Message
func (*PreindexTimezones) Reset ¶
func (x *PreindexTimezones) Reset()
func (*PreindexTimezones) String ¶
func (x *PreindexTimezones) String() string
type Timezone ¶
type Timezone struct { Polygons []*Polygon `protobuf:"bytes,1,rep,name=polygons,proto3" json:"polygons,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Timezone is a timezone's all data.
func (*Timezone) Descriptor
deprecated
func (*Timezone) GetPolygons ¶
func (*Timezone) ProtoMessage ¶
func (*Timezone) ProtoMessage()
func (*Timezone) ProtoReflect ¶
func (x *Timezone) ProtoReflect() protoreflect.Message
type Timezones ¶
type Timezones struct { Timezones []*Timezone `protobuf:"bytes,1,rep,name=timezones,proto3" json:"timezones,omitempty"` Reduced bool `protobuf:"varint,2,opt,name=reduced,proto3" json:"reduced,omitempty"` // Reduced data will toggle neighbor search as plan b Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*Timezones) Descriptor
deprecated
func (*Timezones) GetReduced ¶
func (*Timezones) GetTimezones ¶
func (*Timezones) GetVersion ¶
func (*Timezones) ProtoMessage ¶
func (*Timezones) ProtoMessage()
func (*Timezones) ProtoReflect ¶
func (x *Timezones) ProtoReflect() protoreflect.Message