geocoding

package
v0.0.0-...-f502665 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGeocodingServiceHandler

func RegisterGeocodingServiceHandler(s server.Server, hdlr GeocodingServiceHandler, opts ...server.HandlerOption) error

Types

type ForwardRequest

type ForwardRequest struct {
	Query                string   `protobuf:"bytes,1,opt,name=Query,proto3" json:"Query,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ForwardRequest) Descriptor

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

func (*ForwardRequest) GetQuery

func (m *ForwardRequest) GetQuery() string

func (*ForwardRequest) ProtoMessage

func (*ForwardRequest) ProtoMessage()

func (*ForwardRequest) Reset

func (m *ForwardRequest) Reset()

func (*ForwardRequest) String

func (m *ForwardRequest) String() string

func (*ForwardRequest) XXX_DiscardUnknown

func (m *ForwardRequest) XXX_DiscardUnknown()

func (*ForwardRequest) XXX_Marshal

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

func (*ForwardRequest) XXX_Merge

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

func (*ForwardRequest) XXX_Size

func (m *ForwardRequest) XXX_Size() int

func (*ForwardRequest) XXX_Unmarshal

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

type ForwardResponse

type ForwardResponse struct {
	Geojson              *GeoJson `protobuf:"bytes,1,opt,name=Geojson,proto3" json:"Geojson,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ForwardResponse) Descriptor

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

func (*ForwardResponse) GetGeojson

func (m *ForwardResponse) GetGeojson() *GeoJson

func (*ForwardResponse) ProtoMessage

func (*ForwardResponse) ProtoMessage()

func (*ForwardResponse) Reset

func (m *ForwardResponse) Reset()

func (*ForwardResponse) String

func (m *ForwardResponse) String() string

func (*ForwardResponse) XXX_DiscardUnknown

func (m *ForwardResponse) XXX_DiscardUnknown()

func (*ForwardResponse) XXX_Marshal

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

func (*ForwardResponse) XXX_Merge

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

func (*ForwardResponse) XXX_Size

func (m *ForwardResponse) XXX_Size() int

func (*ForwardResponse) XXX_Unmarshal

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

type GeoJson

type GeoJson struct {
	Type                 string              `protobuf:"bytes,1,opt,name=Type,proto3" json:"Type,omitempty"`
	Geocoding            *GeoJson_GEOCODING  `protobuf:"bytes,2,opt,name=Geocoding,proto3" json:"Geocoding,omitempty"`
	Features             []*GeoJson_FEATURES `protobuf:"bytes,3,rep,name=Features,proto3" json:"Features,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*GeoJson) Descriptor

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

func (*GeoJson) GetFeatures

func (m *GeoJson) GetFeatures() []*GeoJson_FEATURES

func (*GeoJson) GetGeocoding

func (m *GeoJson) GetGeocoding() *GeoJson_GEOCODING

func (*GeoJson) GetType

func (m *GeoJson) GetType() string

func (*GeoJson) ProtoMessage

func (*GeoJson) ProtoMessage()

func (*GeoJson) Reset

func (m *GeoJson) Reset()

func (*GeoJson) String

func (m *GeoJson) String() string

func (*GeoJson) XXX_DiscardUnknown

func (m *GeoJson) XXX_DiscardUnknown()

func (*GeoJson) XXX_Marshal

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

func (*GeoJson) XXX_Merge

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

func (*GeoJson) XXX_Size

func (m *GeoJson) XXX_Size() int

func (*GeoJson) XXX_Unmarshal

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

type GeoJson_FEATURES

type GeoJson_FEATURES struct {
	Type                 string                       `protobuf:"bytes,1,opt,name=Type,proto3" json:"Type,omitempty"`
	Properties           *GeoJson_FEATURES_PROPERTIES `protobuf:"bytes,2,opt,name=Properties,proto3" json:"Properties,omitempty"`
	Geometry             *GeoJson_FEATURES_GEOMETRY   `protobuf:"bytes,3,opt,name=Geometry,proto3" json:"Geometry,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                     `json:"-"`
	XXX_unrecognized     []byte                       `json:"-"`
	XXX_sizecache        int32                        `json:"-"`
}

func (*GeoJson_FEATURES) Descriptor

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

func (*GeoJson_FEATURES) GetGeometry

func (m *GeoJson_FEATURES) GetGeometry() *GeoJson_FEATURES_GEOMETRY

func (*GeoJson_FEATURES) GetProperties

func (m *GeoJson_FEATURES) GetProperties() *GeoJson_FEATURES_PROPERTIES

func (*GeoJson_FEATURES) GetType

func (m *GeoJson_FEATURES) GetType() string

func (*GeoJson_FEATURES) ProtoMessage

func (*GeoJson_FEATURES) ProtoMessage()

func (*GeoJson_FEATURES) Reset

func (m *GeoJson_FEATURES) Reset()

func (*GeoJson_FEATURES) String

func (m *GeoJson_FEATURES) String() string

func (*GeoJson_FEATURES) XXX_DiscardUnknown

func (m *GeoJson_FEATURES) XXX_DiscardUnknown()

func (*GeoJson_FEATURES) XXX_Marshal

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

func (*GeoJson_FEATURES) XXX_Merge

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

func (*GeoJson_FEATURES) XXX_Size

func (m *GeoJson_FEATURES) XXX_Size() int

func (*GeoJson_FEATURES) XXX_Unmarshal

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

type GeoJson_FEATURES_GEOMETRY

type GeoJson_FEATURES_GEOMETRY struct {
	Type                 string   `protobuf:"bytes,1,opt,name=Type,proto3" json:"Type,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GeoJson_FEATURES_GEOMETRY) Descriptor

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

func (*GeoJson_FEATURES_GEOMETRY) GetType

func (m *GeoJson_FEATURES_GEOMETRY) GetType() string

func (*GeoJson_FEATURES_GEOMETRY) ProtoMessage

func (*GeoJson_FEATURES_GEOMETRY) ProtoMessage()

func (*GeoJson_FEATURES_GEOMETRY) Reset

func (m *GeoJson_FEATURES_GEOMETRY) Reset()

func (*GeoJson_FEATURES_GEOMETRY) String

func (m *GeoJson_FEATURES_GEOMETRY) String() string

func (*GeoJson_FEATURES_GEOMETRY) XXX_DiscardUnknown

func (m *GeoJson_FEATURES_GEOMETRY) XXX_DiscardUnknown()

func (*GeoJson_FEATURES_GEOMETRY) XXX_Marshal

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

func (*GeoJson_FEATURES_GEOMETRY) XXX_Merge

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

func (*GeoJson_FEATURES_GEOMETRY) XXX_Size

func (m *GeoJson_FEATURES_GEOMETRY) XXX_Size() int

func (*GeoJson_FEATURES_GEOMETRY) XXX_Unmarshal

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

type GeoJson_FEATURES_PROPERTIES

type GeoJson_FEATURES_PROPERTIES struct {
	Geocoding            *GeoJson_FEATURES_PROPERTIES_GEOCODING `protobuf:"bytes,1,opt,name=Geocoding,proto3" json:"Geocoding,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                               `json:"-"`
	XXX_unrecognized     []byte                                 `json:"-"`
	XXX_sizecache        int32                                  `json:"-"`
}

func (*GeoJson_FEATURES_PROPERTIES) Descriptor

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

func (*GeoJson_FEATURES_PROPERTIES) GetGeocoding

func (*GeoJson_FEATURES_PROPERTIES) ProtoMessage

func (*GeoJson_FEATURES_PROPERTIES) ProtoMessage()

func (*GeoJson_FEATURES_PROPERTIES) Reset

func (m *GeoJson_FEATURES_PROPERTIES) Reset()

func (*GeoJson_FEATURES_PROPERTIES) String

func (m *GeoJson_FEATURES_PROPERTIES) String() string

func (*GeoJson_FEATURES_PROPERTIES) XXX_DiscardUnknown

func (m *GeoJson_FEATURES_PROPERTIES) XXX_DiscardUnknown()

func (*GeoJson_FEATURES_PROPERTIES) XXX_Marshal

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

func (*GeoJson_FEATURES_PROPERTIES) XXX_Merge

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

func (*GeoJson_FEATURES_PROPERTIES) XXX_Size

func (m *GeoJson_FEATURES_PROPERTIES) XXX_Size() int

func (*GeoJson_FEATURES_PROPERTIES) XXX_Unmarshal

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

type GeoJson_FEATURES_PROPERTIES_GEOCODING

type GeoJson_FEATURES_PROPERTIES_GEOCODING struct {
	PlaceId              float64  `protobuf:"fixed64,1,opt,name=Place_id,json=PlaceId,proto3" json:"Place_id,omitempty"`
	OsmType              string   `protobuf:"bytes,2,opt,name=Osm_type,json=OsmType,proto3" json:"Osm_type,omitempty"`
	OsmId                float64  `protobuf:"fixed64,3,opt,name=Osm_id,json=OsmId,proto3" json:"Osm_id,omitempty"`
	Type                 string   `protobuf:"bytes,4,opt,name=Type,proto3" json:"Type,omitempty"`
	Label                string   `protobuf:"bytes,5,opt,name=Label,proto3" json:"Label,omitempty"`
	Name                 string   `protobuf:"bytes,6,opt,name=Name,proto3" json:"Name,omitempty"`
	Housenumber          string   `protobuf:"bytes,7,opt,name=Housenumber,proto3" json:"Housenumber,omitempty"`
	Street               string   `protobuf:"bytes,8,opt,name=Street,proto3" json:"Street,omitempty"`
	Postcode             string   `protobuf:"bytes,9,opt,name=Postcode,proto3" json:"Postcode,omitempty"`
	City                 string   `protobuf:"bytes,10,opt,name=City,proto3" json:"City,omitempty"`
	State                string   `protobuf:"bytes,11,opt,name=State,proto3" json:"State,omitempty"`
	Country              string   `protobuf:"bytes,12,opt,name=Country,proto3" json:"Country,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GeoJson_FEATURES_PROPERTIES_GEOCODING) Descriptor

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

func (*GeoJson_FEATURES_PROPERTIES_GEOCODING) GetCity

func (*GeoJson_FEATURES_PROPERTIES_GEOCODING) GetCountry

func (*GeoJson_FEATURES_PROPERTIES_GEOCODING) GetHousenumber

func (m *GeoJson_FEATURES_PROPERTIES_GEOCODING) GetHousenumber() string

func (*GeoJson_FEATURES_PROPERTIES_GEOCODING) GetLabel

func (*GeoJson_FEATURES_PROPERTIES_GEOCODING) GetName

func (*GeoJson_FEATURES_PROPERTIES_GEOCODING) GetOsmId

func (*GeoJson_FEATURES_PROPERTIES_GEOCODING) GetOsmType

func (*GeoJson_FEATURES_PROPERTIES_GEOCODING) GetPlaceId

func (*GeoJson_FEATURES_PROPERTIES_GEOCODING) GetPostcode

func (*GeoJson_FEATURES_PROPERTIES_GEOCODING) GetState

func (*GeoJson_FEATURES_PROPERTIES_GEOCODING) GetStreet

func (*GeoJson_FEATURES_PROPERTIES_GEOCODING) GetType

func (*GeoJson_FEATURES_PROPERTIES_GEOCODING) ProtoMessage

func (*GeoJson_FEATURES_PROPERTIES_GEOCODING) ProtoMessage()

func (*GeoJson_FEATURES_PROPERTIES_GEOCODING) Reset

func (*GeoJson_FEATURES_PROPERTIES_GEOCODING) String

func (*GeoJson_FEATURES_PROPERTIES_GEOCODING) XXX_DiscardUnknown

func (m *GeoJson_FEATURES_PROPERTIES_GEOCODING) XXX_DiscardUnknown()

func (*GeoJson_FEATURES_PROPERTIES_GEOCODING) XXX_Marshal

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

func (*GeoJson_FEATURES_PROPERTIES_GEOCODING) XXX_Merge

func (*GeoJson_FEATURES_PROPERTIES_GEOCODING) XXX_Size

func (*GeoJson_FEATURES_PROPERTIES_GEOCODING) XXX_Unmarshal

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

type GeoJson_GEOCODING

type GeoJson_GEOCODING struct {
	Version              string   `protobuf:"bytes,1,opt,name=Version,proto3" json:"Version,omitempty"`
	Attribution          string   `protobuf:"bytes,2,opt,name=Attribution,proto3" json:"Attribution,omitempty"`
	Licence              string   `protobuf:"bytes,3,opt,name=Licence,proto3" json:"Licence,omitempty"`
	Query                string   `protobuf:"bytes,4,opt,name=Query,proto3" json:"Query,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GeoJson_GEOCODING) Descriptor

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

func (*GeoJson_GEOCODING) GetAttribution

func (m *GeoJson_GEOCODING) GetAttribution() string

func (*GeoJson_GEOCODING) GetLicence

func (m *GeoJson_GEOCODING) GetLicence() string

func (*GeoJson_GEOCODING) GetQuery

func (m *GeoJson_GEOCODING) GetQuery() string

func (*GeoJson_GEOCODING) GetVersion

func (m *GeoJson_GEOCODING) GetVersion() string

func (*GeoJson_GEOCODING) ProtoMessage

func (*GeoJson_GEOCODING) ProtoMessage()

func (*GeoJson_GEOCODING) Reset

func (m *GeoJson_GEOCODING) Reset()

func (*GeoJson_GEOCODING) String

func (m *GeoJson_GEOCODING) String() string

func (*GeoJson_GEOCODING) XXX_DiscardUnknown

func (m *GeoJson_GEOCODING) XXX_DiscardUnknown()

func (*GeoJson_GEOCODING) XXX_Marshal

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

func (*GeoJson_GEOCODING) XXX_Merge

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

func (*GeoJson_GEOCODING) XXX_Size

func (m *GeoJson_GEOCODING) XXX_Size() int

func (*GeoJson_GEOCODING) XXX_Unmarshal

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

type GeocodingService

type GeocodingService interface {
	Forward(ctx context.Context, in *ForwardRequest, opts ...client.CallOption) (*ForwardResponse, error)
}

func NewGeocodingService

func NewGeocodingService(name string, c client.Client) GeocodingService

type GeocodingServiceHandler

type GeocodingServiceHandler interface {
	Forward(context.Context, *ForwardRequest, *ForwardResponse) error
}

Jump to

Keyboard shortcuts

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