@vectora/contracts 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +25 -0
- package/dist/events/auth/index.d.ts +1 -0
- package/dist/events/auth/index.js +17 -0
- package/dist/events/auth/verification-request.interface.d.ts +5 -0
- package/dist/events/auth/verification-request.interface.js +2 -0
- package/dist/events/index.d.ts +1 -0
- package/dist/events/index.js +17 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +19 -0
- package/dist/proto/index.d.ts +1 -0
- package/dist/proto/index.js +17 -0
- package/dist/proto/paths.d.ts +18 -0
- package/dist/proto/paths.js +27 -0
- package/dist/utils/data-transformer.util.d.ts +55 -0
- package/dist/utils/data-transformer.util.js +141 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +17 -0
- package/gen/go/mapbox-direction-v1.pb.go +621 -0
- package/gen/go/mapbox-geocode-v1.pb.go +473 -0
- package/gen/go/mapbox-matrix-v1.pb.go +337 -0
- package/gen/go/mapbox-optimization-v1.pb.go +422 -0
- package/gen/go/mapbox-search-v1.pb.go +699 -0
- package/gen/ts/common-geocode-v1.ts +368 -0
- package/gen/ts/common-pagination-v1.ts +713 -0
- package/gen/ts/fleet-truck-v1.ts +1102 -0
- package/gen/ts/fleet-unit-v1.ts +9 -0
- package/gen/ts/google/protobuf/field_mask.ts +295 -0
- package/gen/ts/google/protobuf/wrappers.ts +544 -0
- package/gen/ts/identify-account-v1.ts +9 -0
- package/gen/ts/identify-auth-v1.ts +9 -0
- package/gen/ts/identify-company-v1.ts +1025 -0
- package/gen/ts/identify-role-v1.ts +9 -0
- package/gen/ts/identify-user-v1.ts +9 -0
- package/gen/ts/mapbox-direction-v1.ts +718 -0
- package/gen/ts/mapbox-geocode-v1.ts +511 -0
- package/gen/ts/mapbox-matrix-v1.ts +369 -0
- package/gen/ts/mapbox-optimization-v1.ts +472 -0
- package/gen/ts/mapbox-search-v1.ts +803 -0
- package/gen/ts/shipments-freight-v1.ts +9 -0
- package/gen/ts/shipments-loads-v1.ts +9 -0
- package/gen/ts/shipments-rate-v1.ts +9 -0
- package/gen/ts/shipments-stop-v1.ts +9 -0
- package/package.json +40 -0
- package/proto/common-geocode-v1.proto +10 -0
- package/proto/common-pagination-v1.proto +39 -0
- package/proto/fleet-truck-v1.proto +145 -0
- package/proto/fleet-unit-v1.proto +3 -0
- package/proto/identify-account-v1.proto +3 -0
- package/proto/identify-auth-v1.proto +3 -0
- package/proto/identify-company-v1.proto +114 -0
- package/proto/identify-role-v1.proto +3 -0
- package/proto/identify-user-v1.proto +3 -0
- package/proto/mapbox-direction-v1.proto +61 -0
- package/proto/mapbox-geocode-v1.proto +47 -0
- package/proto/mapbox-matrix-v1.proto +34 -0
- package/proto/mapbox-optimization-v1.proto +43 -0
- package/proto/mapbox-search-v1.proto +68 -0
- package/proto/shipments-freight-v1.proto +3 -0
- package/proto/shipments-loads-v1.proto +3 -0
- package/proto/shipments-rate-v1.proto +3 -0
- package/proto/shipments-stop-v1.proto +3 -0
|
@@ -0,0 +1,473 @@
|
|
|
1
|
+
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-go v1.36.11
|
|
4
|
+
// protoc v3.21.12
|
|
5
|
+
// source: mapbox-geocode-v1.proto
|
|
6
|
+
|
|
7
|
+
package geocode_v1
|
|
8
|
+
|
|
9
|
+
import (
|
|
10
|
+
common "github.com/vectora-os/contracts/gen/go/common"
|
|
11
|
+
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
12
|
+
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
13
|
+
reflect "reflect"
|
|
14
|
+
sync "sync"
|
|
15
|
+
unsafe "unsafe"
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
const (
|
|
19
|
+
// Verify that this generated code is sufficiently up-to-date.
|
|
20
|
+
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
21
|
+
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
22
|
+
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
type ForwardGeocodingRequest struct {
|
|
26
|
+
state protoimpl.MessageState `protogen:"open.v1"`
|
|
27
|
+
Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
|
|
28
|
+
Types []string `protobuf:"bytes,2,rep,name=types,proto3" json:"types,omitempty"`
|
|
29
|
+
Limit *int32 `protobuf:"varint,3,opt,name=limit,proto3,oneof" json:"limit,omitempty"`
|
|
30
|
+
unknownFields protoimpl.UnknownFields
|
|
31
|
+
sizeCache protoimpl.SizeCache
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
func (x *ForwardGeocodingRequest) Reset() {
|
|
35
|
+
*x = ForwardGeocodingRequest{}
|
|
36
|
+
mi := &file_mapbox_geocode_v1_proto_msgTypes[0]
|
|
37
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
38
|
+
ms.StoreMessageInfo(mi)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
func (x *ForwardGeocodingRequest) String() string {
|
|
42
|
+
return protoimpl.X.MessageStringOf(x)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
func (*ForwardGeocodingRequest) ProtoMessage() {}
|
|
46
|
+
|
|
47
|
+
func (x *ForwardGeocodingRequest) ProtoReflect() protoreflect.Message {
|
|
48
|
+
mi := &file_mapbox_geocode_v1_proto_msgTypes[0]
|
|
49
|
+
if x != nil {
|
|
50
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
51
|
+
if ms.LoadMessageInfo() == nil {
|
|
52
|
+
ms.StoreMessageInfo(mi)
|
|
53
|
+
}
|
|
54
|
+
return ms
|
|
55
|
+
}
|
|
56
|
+
return mi.MessageOf(x)
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Deprecated: Use ForwardGeocodingRequest.ProtoReflect.Descriptor instead.
|
|
60
|
+
func (*ForwardGeocodingRequest) Descriptor() ([]byte, []int) {
|
|
61
|
+
return file_mapbox_geocode_v1_proto_rawDescGZIP(), []int{0}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
func (x *ForwardGeocodingRequest) GetQuery() string {
|
|
65
|
+
if x != nil {
|
|
66
|
+
return x.Query
|
|
67
|
+
}
|
|
68
|
+
return ""
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
func (x *ForwardGeocodingRequest) GetTypes() []string {
|
|
72
|
+
if x != nil {
|
|
73
|
+
return x.Types
|
|
74
|
+
}
|
|
75
|
+
return nil
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
func (x *ForwardGeocodingRequest) GetLimit() int32 {
|
|
79
|
+
if x != nil && x.Limit != nil {
|
|
80
|
+
return *x.Limit
|
|
81
|
+
}
|
|
82
|
+
return 0
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
type ReverseGeocodingRequest struct {
|
|
86
|
+
state protoimpl.MessageState `protogen:"open.v1"`
|
|
87
|
+
Longitude float64 `protobuf:"fixed64,1,opt,name=longitude,proto3" json:"longitude,omitempty"`
|
|
88
|
+
Latitude float64 `protobuf:"fixed64,2,opt,name=latitude,proto3" json:"latitude,omitempty"`
|
|
89
|
+
Types []string `protobuf:"bytes,3,rep,name=types,proto3" json:"types,omitempty"`
|
|
90
|
+
Limit *int32 `protobuf:"varint,4,opt,name=limit,proto3,oneof" json:"limit,omitempty"`
|
|
91
|
+
unknownFields protoimpl.UnknownFields
|
|
92
|
+
sizeCache protoimpl.SizeCache
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
func (x *ReverseGeocodingRequest) Reset() {
|
|
96
|
+
*x = ReverseGeocodingRequest{}
|
|
97
|
+
mi := &file_mapbox_geocode_v1_proto_msgTypes[1]
|
|
98
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
99
|
+
ms.StoreMessageInfo(mi)
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
func (x *ReverseGeocodingRequest) String() string {
|
|
103
|
+
return protoimpl.X.MessageStringOf(x)
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
func (*ReverseGeocodingRequest) ProtoMessage() {}
|
|
107
|
+
|
|
108
|
+
func (x *ReverseGeocodingRequest) ProtoReflect() protoreflect.Message {
|
|
109
|
+
mi := &file_mapbox_geocode_v1_proto_msgTypes[1]
|
|
110
|
+
if x != nil {
|
|
111
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
112
|
+
if ms.LoadMessageInfo() == nil {
|
|
113
|
+
ms.StoreMessageInfo(mi)
|
|
114
|
+
}
|
|
115
|
+
return ms
|
|
116
|
+
}
|
|
117
|
+
return mi.MessageOf(x)
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// Deprecated: Use ReverseGeocodingRequest.ProtoReflect.Descriptor instead.
|
|
121
|
+
func (*ReverseGeocodingRequest) Descriptor() ([]byte, []int) {
|
|
122
|
+
return file_mapbox_geocode_v1_proto_rawDescGZIP(), []int{1}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
func (x *ReverseGeocodingRequest) GetLongitude() float64 {
|
|
126
|
+
if x != nil {
|
|
127
|
+
return x.Longitude
|
|
128
|
+
}
|
|
129
|
+
return 0
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
func (x *ReverseGeocodingRequest) GetLatitude() float64 {
|
|
133
|
+
if x != nil {
|
|
134
|
+
return x.Latitude
|
|
135
|
+
}
|
|
136
|
+
return 0
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
func (x *ReverseGeocodingRequest) GetTypes() []string {
|
|
140
|
+
if x != nil {
|
|
141
|
+
return x.Types
|
|
142
|
+
}
|
|
143
|
+
return nil
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
func (x *ReverseGeocodingRequest) GetLimit() int32 {
|
|
147
|
+
if x != nil && x.Limit != nil {
|
|
148
|
+
return *x.Limit
|
|
149
|
+
}
|
|
150
|
+
return 0
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
type GeocodingResponse struct {
|
|
154
|
+
state protoimpl.MessageState `protogen:"open.v1"`
|
|
155
|
+
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
|
156
|
+
Query []string `protobuf:"bytes,2,rep,name=query,proto3" json:"query,omitempty"`
|
|
157
|
+
Features []*GeocodingFeature `protobuf:"bytes,3,rep,name=features,proto3" json:"features,omitempty"`
|
|
158
|
+
Attribution string `protobuf:"bytes,4,opt,name=attribution,proto3" json:"attribution,omitempty"`
|
|
159
|
+
unknownFields protoimpl.UnknownFields
|
|
160
|
+
sizeCache protoimpl.SizeCache
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
func (x *GeocodingResponse) Reset() {
|
|
164
|
+
*x = GeocodingResponse{}
|
|
165
|
+
mi := &file_mapbox_geocode_v1_proto_msgTypes[2]
|
|
166
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
167
|
+
ms.StoreMessageInfo(mi)
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
func (x *GeocodingResponse) String() string {
|
|
171
|
+
return protoimpl.X.MessageStringOf(x)
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
func (*GeocodingResponse) ProtoMessage() {}
|
|
175
|
+
|
|
176
|
+
func (x *GeocodingResponse) ProtoReflect() protoreflect.Message {
|
|
177
|
+
mi := &file_mapbox_geocode_v1_proto_msgTypes[2]
|
|
178
|
+
if x != nil {
|
|
179
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
180
|
+
if ms.LoadMessageInfo() == nil {
|
|
181
|
+
ms.StoreMessageInfo(mi)
|
|
182
|
+
}
|
|
183
|
+
return ms
|
|
184
|
+
}
|
|
185
|
+
return mi.MessageOf(x)
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// Deprecated: Use GeocodingResponse.ProtoReflect.Descriptor instead.
|
|
189
|
+
func (*GeocodingResponse) Descriptor() ([]byte, []int) {
|
|
190
|
+
return file_mapbox_geocode_v1_proto_rawDescGZIP(), []int{2}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
func (x *GeocodingResponse) GetType() string {
|
|
194
|
+
if x != nil {
|
|
195
|
+
return x.Type
|
|
196
|
+
}
|
|
197
|
+
return ""
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
func (x *GeocodingResponse) GetQuery() []string {
|
|
201
|
+
if x != nil {
|
|
202
|
+
return x.Query
|
|
203
|
+
}
|
|
204
|
+
return nil
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
func (x *GeocodingResponse) GetFeatures() []*GeocodingFeature {
|
|
208
|
+
if x != nil {
|
|
209
|
+
return x.Features
|
|
210
|
+
}
|
|
211
|
+
return nil
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
func (x *GeocodingResponse) GetAttribution() string {
|
|
215
|
+
if x != nil {
|
|
216
|
+
return x.Attribution
|
|
217
|
+
}
|
|
218
|
+
return ""
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
type GeocodingFeature struct {
|
|
222
|
+
state protoimpl.MessageState `protogen:"open.v1"`
|
|
223
|
+
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
224
|
+
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
|
225
|
+
PlaceName string `protobuf:"bytes,3,opt,name=place_name,json=placeName,proto3" json:"place_name,omitempty"`
|
|
226
|
+
Properties *GeocodingProperties `protobuf:"bytes,4,opt,name=properties,proto3" json:"properties,omitempty"`
|
|
227
|
+
Geometry *common.Geometry `protobuf:"bytes,5,opt,name=geometry,proto3" json:"geometry,omitempty"`
|
|
228
|
+
Context []*common.ContextItem `protobuf:"bytes,6,rep,name=context,proto3" json:"context,omitempty"`
|
|
229
|
+
unknownFields protoimpl.UnknownFields
|
|
230
|
+
sizeCache protoimpl.SizeCache
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
func (x *GeocodingFeature) Reset() {
|
|
234
|
+
*x = GeocodingFeature{}
|
|
235
|
+
mi := &file_mapbox_geocode_v1_proto_msgTypes[3]
|
|
236
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
237
|
+
ms.StoreMessageInfo(mi)
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
func (x *GeocodingFeature) String() string {
|
|
241
|
+
return protoimpl.X.MessageStringOf(x)
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
func (*GeocodingFeature) ProtoMessage() {}
|
|
245
|
+
|
|
246
|
+
func (x *GeocodingFeature) ProtoReflect() protoreflect.Message {
|
|
247
|
+
mi := &file_mapbox_geocode_v1_proto_msgTypes[3]
|
|
248
|
+
if x != nil {
|
|
249
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
250
|
+
if ms.LoadMessageInfo() == nil {
|
|
251
|
+
ms.StoreMessageInfo(mi)
|
|
252
|
+
}
|
|
253
|
+
return ms
|
|
254
|
+
}
|
|
255
|
+
return mi.MessageOf(x)
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
// Deprecated: Use GeocodingFeature.ProtoReflect.Descriptor instead.
|
|
259
|
+
func (*GeocodingFeature) Descriptor() ([]byte, []int) {
|
|
260
|
+
return file_mapbox_geocode_v1_proto_rawDescGZIP(), []int{3}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
func (x *GeocodingFeature) GetId() string {
|
|
264
|
+
if x != nil {
|
|
265
|
+
return x.Id
|
|
266
|
+
}
|
|
267
|
+
return ""
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
func (x *GeocodingFeature) GetType() string {
|
|
271
|
+
if x != nil {
|
|
272
|
+
return x.Type
|
|
273
|
+
}
|
|
274
|
+
return ""
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
func (x *GeocodingFeature) GetPlaceName() string {
|
|
278
|
+
if x != nil {
|
|
279
|
+
return x.PlaceName
|
|
280
|
+
}
|
|
281
|
+
return ""
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
func (x *GeocodingFeature) GetProperties() *GeocodingProperties {
|
|
285
|
+
if x != nil {
|
|
286
|
+
return x.Properties
|
|
287
|
+
}
|
|
288
|
+
return nil
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
func (x *GeocodingFeature) GetGeometry() *common.Geometry {
|
|
292
|
+
if x != nil {
|
|
293
|
+
return x.Geometry
|
|
294
|
+
}
|
|
295
|
+
return nil
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
func (x *GeocodingFeature) GetContext() []*common.ContextItem {
|
|
299
|
+
if x != nil {
|
|
300
|
+
return x.Context
|
|
301
|
+
}
|
|
302
|
+
return nil
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
type GeocodingProperties struct {
|
|
306
|
+
state protoimpl.MessageState `protogen:"open.v1"`
|
|
307
|
+
MapboxId *string `protobuf:"bytes,1,opt,name=mapbox_id,json=mapboxId,proto3,oneof" json:"mapbox_id,omitempty"`
|
|
308
|
+
Wikidata *string `protobuf:"bytes,2,opt,name=wikidata,proto3,oneof" json:"wikidata,omitempty"`
|
|
309
|
+
Address *string `protobuf:"bytes,3,opt,name=address,proto3,oneof" json:"address,omitempty"`
|
|
310
|
+
unknownFields protoimpl.UnknownFields
|
|
311
|
+
sizeCache protoimpl.SizeCache
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
func (x *GeocodingProperties) Reset() {
|
|
315
|
+
*x = GeocodingProperties{}
|
|
316
|
+
mi := &file_mapbox_geocode_v1_proto_msgTypes[4]
|
|
317
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
318
|
+
ms.StoreMessageInfo(mi)
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
func (x *GeocodingProperties) String() string {
|
|
322
|
+
return protoimpl.X.MessageStringOf(x)
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
func (*GeocodingProperties) ProtoMessage() {}
|
|
326
|
+
|
|
327
|
+
func (x *GeocodingProperties) ProtoReflect() protoreflect.Message {
|
|
328
|
+
mi := &file_mapbox_geocode_v1_proto_msgTypes[4]
|
|
329
|
+
if x != nil {
|
|
330
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
331
|
+
if ms.LoadMessageInfo() == nil {
|
|
332
|
+
ms.StoreMessageInfo(mi)
|
|
333
|
+
}
|
|
334
|
+
return ms
|
|
335
|
+
}
|
|
336
|
+
return mi.MessageOf(x)
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
// Deprecated: Use GeocodingProperties.ProtoReflect.Descriptor instead.
|
|
340
|
+
func (*GeocodingProperties) Descriptor() ([]byte, []int) {
|
|
341
|
+
return file_mapbox_geocode_v1_proto_rawDescGZIP(), []int{4}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
func (x *GeocodingProperties) GetMapboxId() string {
|
|
345
|
+
if x != nil && x.MapboxId != nil {
|
|
346
|
+
return *x.MapboxId
|
|
347
|
+
}
|
|
348
|
+
return ""
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
func (x *GeocodingProperties) GetWikidata() string {
|
|
352
|
+
if x != nil && x.Wikidata != nil {
|
|
353
|
+
return *x.Wikidata
|
|
354
|
+
}
|
|
355
|
+
return ""
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
func (x *GeocodingProperties) GetAddress() string {
|
|
359
|
+
if x != nil && x.Address != nil {
|
|
360
|
+
return *x.Address
|
|
361
|
+
}
|
|
362
|
+
return ""
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
var File_mapbox_geocode_v1_proto protoreflect.FileDescriptor
|
|
366
|
+
|
|
367
|
+
const file_mapbox_geocode_v1_proto_rawDesc = "" +
|
|
368
|
+
"\n" +
|
|
369
|
+
"\x17mapbox-geocode-v1.proto\x12\n" +
|
|
370
|
+
"geocode.v1\x1a\x17common-geocode-v1.proto\"j\n" +
|
|
371
|
+
"\x17ForwardGeocodingRequest\x12\x14\n" +
|
|
372
|
+
"\x05query\x18\x01 \x01(\tR\x05query\x12\x14\n" +
|
|
373
|
+
"\x05types\x18\x02 \x03(\tR\x05types\x12\x19\n" +
|
|
374
|
+
"\x05limit\x18\x03 \x01(\x05H\x00R\x05limit\x88\x01\x01B\b\n" +
|
|
375
|
+
"\x06_limit\"\x8e\x01\n" +
|
|
376
|
+
"\x17ReverseGeocodingRequest\x12\x1c\n" +
|
|
377
|
+
"\tlongitude\x18\x01 \x01(\x01R\tlongitude\x12\x1a\n" +
|
|
378
|
+
"\blatitude\x18\x02 \x01(\x01R\blatitude\x12\x14\n" +
|
|
379
|
+
"\x05types\x18\x03 \x03(\tR\x05types\x12\x19\n" +
|
|
380
|
+
"\x05limit\x18\x04 \x01(\x05H\x00R\x05limit\x88\x01\x01B\b\n" +
|
|
381
|
+
"\x06_limit\"\x99\x01\n" +
|
|
382
|
+
"\x11GeocodingResponse\x12\x12\n" +
|
|
383
|
+
"\x04type\x18\x01 \x01(\tR\x04type\x12\x14\n" +
|
|
384
|
+
"\x05query\x18\x02 \x03(\tR\x05query\x128\n" +
|
|
385
|
+
"\bfeatures\x18\x03 \x03(\v2\x1c.geocode.v1.GeocodingFeatureR\bfeatures\x12 \n" +
|
|
386
|
+
"\vattribution\x18\x04 \x01(\tR\vattribution\"\x89\x02\n" +
|
|
387
|
+
"\x10GeocodingFeature\x12\x0e\n" +
|
|
388
|
+
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
|
389
|
+
"\x04type\x18\x02 \x01(\tR\x04type\x12\x1d\n" +
|
|
390
|
+
"\n" +
|
|
391
|
+
"place_name\x18\x03 \x01(\tR\tplaceName\x12?\n" +
|
|
392
|
+
"\n" +
|
|
393
|
+
"properties\x18\x04 \x01(\v2\x1f.geocode.v1.GeocodingPropertiesR\n" +
|
|
394
|
+
"properties\x127\n" +
|
|
395
|
+
"\bgeometry\x18\x05 \x01(\v2\x1b.common_geocode.v1.GeometryR\bgeometry\x128\n" +
|
|
396
|
+
"\acontext\x18\x06 \x03(\v2\x1e.common_geocode.v1.ContextItemR\acontext\"\x9e\x01\n" +
|
|
397
|
+
"\x13GeocodingProperties\x12 \n" +
|
|
398
|
+
"\tmapbox_id\x18\x01 \x01(\tH\x00R\bmapboxId\x88\x01\x01\x12\x1f\n" +
|
|
399
|
+
"\bwikidata\x18\x02 \x01(\tH\x01R\bwikidata\x88\x01\x01\x12\x1d\n" +
|
|
400
|
+
"\aaddress\x18\x03 \x01(\tH\x02R\aaddress\x88\x01\x01B\f\n" +
|
|
401
|
+
"\n" +
|
|
402
|
+
"_mapbox_idB\v\n" +
|
|
403
|
+
"\t_wikidataB\n" +
|
|
404
|
+
"\n" +
|
|
405
|
+
"\b_address2\xc2\x01\n" +
|
|
406
|
+
"\x10GeocodingService\x12V\n" +
|
|
407
|
+
"\x10ForwardGeocoding\x12#.geocode.v1.ForwardGeocodingRequest\x1a\x1d.geocode.v1.GeocodingResponse\x12V\n" +
|
|
408
|
+
"\x10ReverseGeocoding\x12#.geocode.v1.ReverseGeocodingRequest\x1a\x1d.geocode.v1.GeocodingResponseB;Z9github.com/vectora-os/contracts/gen/go/geocode;geocode_v1b\x06proto3"
|
|
409
|
+
|
|
410
|
+
var (
|
|
411
|
+
file_mapbox_geocode_v1_proto_rawDescOnce sync.Once
|
|
412
|
+
file_mapbox_geocode_v1_proto_rawDescData []byte
|
|
413
|
+
)
|
|
414
|
+
|
|
415
|
+
func file_mapbox_geocode_v1_proto_rawDescGZIP() []byte {
|
|
416
|
+
file_mapbox_geocode_v1_proto_rawDescOnce.Do(func() {
|
|
417
|
+
file_mapbox_geocode_v1_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_mapbox_geocode_v1_proto_rawDesc), len(file_mapbox_geocode_v1_proto_rawDesc)))
|
|
418
|
+
})
|
|
419
|
+
return file_mapbox_geocode_v1_proto_rawDescData
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
var file_mapbox_geocode_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
|
423
|
+
var file_mapbox_geocode_v1_proto_goTypes = []any{
|
|
424
|
+
(*ForwardGeocodingRequest)(nil), // 0: geocode.v1.ForwardGeocodingRequest
|
|
425
|
+
(*ReverseGeocodingRequest)(nil), // 1: geocode.v1.ReverseGeocodingRequest
|
|
426
|
+
(*GeocodingResponse)(nil), // 2: geocode.v1.GeocodingResponse
|
|
427
|
+
(*GeocodingFeature)(nil), // 3: geocode.v1.GeocodingFeature
|
|
428
|
+
(*GeocodingProperties)(nil), // 4: geocode.v1.GeocodingProperties
|
|
429
|
+
(*common.Geometry)(nil), // 5: common_geocode.v1.Geometry
|
|
430
|
+
(*common.ContextItem)(nil), // 6: common_geocode.v1.ContextItem
|
|
431
|
+
}
|
|
432
|
+
var file_mapbox_geocode_v1_proto_depIdxs = []int32{
|
|
433
|
+
3, // 0: geocode.v1.GeocodingResponse.features:type_name -> geocode.v1.GeocodingFeature
|
|
434
|
+
4, // 1: geocode.v1.GeocodingFeature.properties:type_name -> geocode.v1.GeocodingProperties
|
|
435
|
+
5, // 2: geocode.v1.GeocodingFeature.geometry:type_name -> common_geocode.v1.Geometry
|
|
436
|
+
6, // 3: geocode.v1.GeocodingFeature.context:type_name -> common_geocode.v1.ContextItem
|
|
437
|
+
0, // 4: geocode.v1.GeocodingService.ForwardGeocoding:input_type -> geocode.v1.ForwardGeocodingRequest
|
|
438
|
+
1, // 5: geocode.v1.GeocodingService.ReverseGeocoding:input_type -> geocode.v1.ReverseGeocodingRequest
|
|
439
|
+
2, // 6: geocode.v1.GeocodingService.ForwardGeocoding:output_type -> geocode.v1.GeocodingResponse
|
|
440
|
+
2, // 7: geocode.v1.GeocodingService.ReverseGeocoding:output_type -> geocode.v1.GeocodingResponse
|
|
441
|
+
6, // [6:8] is the sub-list for method output_type
|
|
442
|
+
4, // [4:6] is the sub-list for method input_type
|
|
443
|
+
4, // [4:4] is the sub-list for extension type_name
|
|
444
|
+
4, // [4:4] is the sub-list for extension extendee
|
|
445
|
+
0, // [0:4] is the sub-list for field type_name
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
func init() { file_mapbox_geocode_v1_proto_init() }
|
|
449
|
+
func file_mapbox_geocode_v1_proto_init() {
|
|
450
|
+
if File_mapbox_geocode_v1_proto != nil {
|
|
451
|
+
return
|
|
452
|
+
}
|
|
453
|
+
file_mapbox_geocode_v1_proto_msgTypes[0].OneofWrappers = []any{}
|
|
454
|
+
file_mapbox_geocode_v1_proto_msgTypes[1].OneofWrappers = []any{}
|
|
455
|
+
file_mapbox_geocode_v1_proto_msgTypes[4].OneofWrappers = []any{}
|
|
456
|
+
type x struct{}
|
|
457
|
+
out := protoimpl.TypeBuilder{
|
|
458
|
+
File: protoimpl.DescBuilder{
|
|
459
|
+
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
460
|
+
RawDescriptor: unsafe.Slice(unsafe.StringData(file_mapbox_geocode_v1_proto_rawDesc), len(file_mapbox_geocode_v1_proto_rawDesc)),
|
|
461
|
+
NumEnums: 0,
|
|
462
|
+
NumMessages: 5,
|
|
463
|
+
NumExtensions: 0,
|
|
464
|
+
NumServices: 1,
|
|
465
|
+
},
|
|
466
|
+
GoTypes: file_mapbox_geocode_v1_proto_goTypes,
|
|
467
|
+
DependencyIndexes: file_mapbox_geocode_v1_proto_depIdxs,
|
|
468
|
+
MessageInfos: file_mapbox_geocode_v1_proto_msgTypes,
|
|
469
|
+
}.Build()
|
|
470
|
+
File_mapbox_geocode_v1_proto = out.File
|
|
471
|
+
file_mapbox_geocode_v1_proto_goTypes = nil
|
|
472
|
+
file_mapbox_geocode_v1_proto_depIdxs = nil
|
|
473
|
+
}
|