@shipsync-software/contracts 1.0.3 → 1.0.5
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/package.json +8 -1
- package/gen/geocoding.ts +0 -286
- package/proto/geocoding.proto +0 -233
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipsync-software/contracts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Protobuf definitions and generated TypeScript types",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
5
7
|
"scripts": {
|
|
8
|
+
"build": "tsc -p tsconfig.build.json",
|
|
6
9
|
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omitA"
|
|
7
10
|
},
|
|
8
11
|
"files": [
|
|
@@ -20,5 +23,9 @@
|
|
|
20
23
|
"@nestjs/microservices": "^11.1.13",
|
|
21
24
|
"rxjs": "^7.8.2",
|
|
22
25
|
"ts-proto": "^2.11.2"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@types/node": "^25.2.2",
|
|
29
|
+
"typescript": "^5.9.3"
|
|
23
30
|
}
|
|
24
31
|
}
|
package/gen/geocoding.ts
DELETED
|
@@ -1,286 +0,0 @@
|
|
|
1
|
-
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
-
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.11.2
|
|
4
|
-
// protoc v3.21.12
|
|
5
|
-
// source: geocoding.proto
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices";
|
|
9
|
-
import { Observable } from "rxjs";
|
|
10
|
-
|
|
11
|
-
export const protobufPackage = "mapbox";
|
|
12
|
-
|
|
13
|
-
export enum Profile {
|
|
14
|
-
DRIVING_TRAFFIC = 0,
|
|
15
|
-
DRIVING = 1,
|
|
16
|
-
WALKING = 2,
|
|
17
|
-
CYCLING = 3,
|
|
18
|
-
UNRECOGNIZED = -1,
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export enum MapboxPlaceType {
|
|
22
|
-
COUNTRY = 0,
|
|
23
|
-
REGION = 1,
|
|
24
|
-
POSTCODE = 2,
|
|
25
|
-
DISTRICT = 3,
|
|
26
|
-
PLACE = 4,
|
|
27
|
-
LOCALITY = 5,
|
|
28
|
-
NEIGHBORHOOD = 6,
|
|
29
|
-
STREET = 7,
|
|
30
|
-
ADDRESS = 8,
|
|
31
|
-
POI = 9,
|
|
32
|
-
UNRECOGNIZED = -1,
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export enum MapboxAnnotation {
|
|
36
|
-
DURATION = 0,
|
|
37
|
-
DISTANCE = 1,
|
|
38
|
-
UNRECOGNIZED = -1,
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export enum GeometryType {
|
|
42
|
-
GEOJSON = 0,
|
|
43
|
-
POLYLINE = 1,
|
|
44
|
-
POLYLINE6 = 2,
|
|
45
|
-
UNRECOGNIZED = -1,
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export enum DrivingSide {
|
|
49
|
-
LEFT = 0,
|
|
50
|
-
RIGHT = 1,
|
|
51
|
-
UNRECOGNIZED = -1,
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export interface LatLng {
|
|
55
|
-
longitude: number;
|
|
56
|
-
latitude: number;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export interface Geometry {
|
|
60
|
-
/** e.g., "LineString" or "Point" */
|
|
61
|
-
type: string;
|
|
62
|
-
coordinates: LatLng[];
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export interface DirectionRequest {
|
|
66
|
-
coordinates: LatLng[];
|
|
67
|
-
profile: Profile;
|
|
68
|
-
steps: boolean;
|
|
69
|
-
geometries: GeometryType;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export interface MapboxManeuver {
|
|
73
|
-
type: string;
|
|
74
|
-
instruction: string;
|
|
75
|
-
location: LatLng | undefined;
|
|
76
|
-
modifier: string;
|
|
77
|
-
bearingBefore: number;
|
|
78
|
-
bearingAfter: number;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export interface RouteLegStep {
|
|
82
|
-
maneuver: MapboxManeuver | undefined;
|
|
83
|
-
name: string;
|
|
84
|
-
distance: number;
|
|
85
|
-
duration: number;
|
|
86
|
-
mode: string;
|
|
87
|
-
drivingSide: DrivingSide;
|
|
88
|
-
geometry: Geometry | undefined;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export interface RouteLeg {
|
|
92
|
-
steps: RouteLegStep[];
|
|
93
|
-
distance: number;
|
|
94
|
-
duration: number;
|
|
95
|
-
summary: string;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export interface Route {
|
|
99
|
-
legs: RouteLeg[];
|
|
100
|
-
distance: number;
|
|
101
|
-
duration: number;
|
|
102
|
-
geometry: Geometry | undefined;
|
|
103
|
-
weightName: string;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export interface Waypoint {
|
|
107
|
-
name: string;
|
|
108
|
-
location: LatLng | undefined;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export interface DirectionResponse {
|
|
112
|
-
routes: Route[];
|
|
113
|
-
waypoints: Waypoint[];
|
|
114
|
-
code: string;
|
|
115
|
-
uuid: string;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export interface GeocodingRequest {
|
|
119
|
-
query: string;
|
|
120
|
-
types: MapboxPlaceType[];
|
|
121
|
-
limit: number;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export interface GeocodingContext {
|
|
125
|
-
id: string;
|
|
126
|
-
text: string;
|
|
127
|
-
shortCode: string;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
export interface GeocodingFeature {
|
|
131
|
-
id: string;
|
|
132
|
-
placeName: string;
|
|
133
|
-
properties: { [key: string]: string };
|
|
134
|
-
context: GeocodingContext[];
|
|
135
|
-
geometry: Geometry | undefined;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export interface GeocodingFeature_PropertiesEntry {
|
|
139
|
-
key: string;
|
|
140
|
-
value: string;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export interface GeocodingResponse {
|
|
144
|
-
features: GeocodingFeature[];
|
|
145
|
-
attribution: string;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export interface MatrixRequest {
|
|
149
|
-
coordinates: LatLng[];
|
|
150
|
-
profile: Profile;
|
|
151
|
-
annotations: MapboxAnnotation[];
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
export interface MatrixResponse {
|
|
155
|
-
code: string;
|
|
156
|
-
destinations: Waypoint[];
|
|
157
|
-
sources: Waypoint[];
|
|
158
|
-
/** Flattened 2D array or use repeated Row */
|
|
159
|
-
durations: number[];
|
|
160
|
-
distances: number[];
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
export interface OptimizationRequest {
|
|
164
|
-
coordinates: LatLng[];
|
|
165
|
-
profile: Profile;
|
|
166
|
-
roundtrip: boolean;
|
|
167
|
-
source: string;
|
|
168
|
-
destination: string;
|
|
169
|
-
geometries: GeometryType;
|
|
170
|
-
steps: boolean;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
export interface OptimizationWaypoint {
|
|
174
|
-
name: string;
|
|
175
|
-
location: LatLng | undefined;
|
|
176
|
-
waypointIndex: number;
|
|
177
|
-
tripsIndex: number;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
export interface OptimizationResponse {
|
|
181
|
-
code: string;
|
|
182
|
-
waypoints: OptimizationWaypoint[];
|
|
183
|
-
trips: Route[];
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
export interface SearchSuggestRequest {
|
|
187
|
-
q: string;
|
|
188
|
-
sessionToken: string;
|
|
189
|
-
limit: number;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export interface SearchRetrieveRequest {
|
|
193
|
-
mapboxId: string;
|
|
194
|
-
sessionToken: string;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
export interface SearchContext {
|
|
198
|
-
country: string;
|
|
199
|
-
region: string;
|
|
200
|
-
postcode: string;
|
|
201
|
-
place: string;
|
|
202
|
-
neighborhood: string;
|
|
203
|
-
street: string;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export interface SearchSuggestion {
|
|
207
|
-
name: string;
|
|
208
|
-
mapboxId: string;
|
|
209
|
-
featureType: string;
|
|
210
|
-
placeName: string;
|
|
211
|
-
address: string;
|
|
212
|
-
context: SearchContext | undefined;
|
|
213
|
-
language: string;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
export interface SearchFeature {
|
|
217
|
-
id: string;
|
|
218
|
-
geometry: Geometry | undefined;
|
|
219
|
-
name: string;
|
|
220
|
-
mapboxId: string;
|
|
221
|
-
fullAddress: string;
|
|
222
|
-
context: SearchContext | undefined;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
export interface SearchResponse {
|
|
226
|
-
suggestions: SearchSuggestion[];
|
|
227
|
-
features: SearchFeature[];
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
export const MAPBOX_PACKAGE_NAME = "mapbox";
|
|
231
|
-
|
|
232
|
-
export interface MapboxServiceClient {
|
|
233
|
-
getRoute(request: DirectionRequest): Observable<DirectionResponse>;
|
|
234
|
-
|
|
235
|
-
searchGeocoding(request: GeocodingRequest): Observable<GeocodingResponse>;
|
|
236
|
-
|
|
237
|
-
getMatrix(request: MatrixRequest): Observable<MatrixResponse>;
|
|
238
|
-
|
|
239
|
-
optimizeRoute(request: OptimizationRequest): Observable<OptimizationResponse>;
|
|
240
|
-
|
|
241
|
-
suggestSearch(request: SearchSuggestRequest): Observable<SearchResponse>;
|
|
242
|
-
|
|
243
|
-
retrieveSearch(request: SearchRetrieveRequest): Observable<SearchResponse>;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
export interface MapboxServiceController {
|
|
247
|
-
getRoute(request: DirectionRequest): Promise<DirectionResponse> | Observable<DirectionResponse> | DirectionResponse;
|
|
248
|
-
|
|
249
|
-
searchGeocoding(
|
|
250
|
-
request: GeocodingRequest,
|
|
251
|
-
): Promise<GeocodingResponse> | Observable<GeocodingResponse> | GeocodingResponse;
|
|
252
|
-
|
|
253
|
-
getMatrix(request: MatrixRequest): Promise<MatrixResponse> | Observable<MatrixResponse> | MatrixResponse;
|
|
254
|
-
|
|
255
|
-
optimizeRoute(
|
|
256
|
-
request: OptimizationRequest,
|
|
257
|
-
): Promise<OptimizationResponse> | Observable<OptimizationResponse> | OptimizationResponse;
|
|
258
|
-
|
|
259
|
-
suggestSearch(request: SearchSuggestRequest): Promise<SearchResponse> | Observable<SearchResponse> | SearchResponse;
|
|
260
|
-
|
|
261
|
-
retrieveSearch(request: SearchRetrieveRequest): Promise<SearchResponse> | Observable<SearchResponse> | SearchResponse;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
export function MapboxServiceControllerMethods() {
|
|
265
|
-
return function (constructor: Function) {
|
|
266
|
-
const grpcMethods: string[] = [
|
|
267
|
-
"getRoute",
|
|
268
|
-
"searchGeocoding",
|
|
269
|
-
"getMatrix",
|
|
270
|
-
"optimizeRoute",
|
|
271
|
-
"suggestSearch",
|
|
272
|
-
"retrieveSearch",
|
|
273
|
-
];
|
|
274
|
-
for (const method of grpcMethods) {
|
|
275
|
-
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
276
|
-
GrpcMethod("MapboxService", method)(constructor.prototype[method], method, descriptor);
|
|
277
|
-
}
|
|
278
|
-
const grpcStreamMethods: string[] = [];
|
|
279
|
-
for (const method of grpcStreamMethods) {
|
|
280
|
-
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
281
|
-
GrpcStreamMethod("MapboxService", method)(constructor.prototype[method], method, descriptor);
|
|
282
|
-
}
|
|
283
|
-
};
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
export const MAPBOX_SERVICE_NAME = "MapboxService";
|
package/proto/geocoding.proto
DELETED
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package mapbox;
|
|
4
|
-
|
|
5
|
-
// --- Enums ---
|
|
6
|
-
|
|
7
|
-
enum Profile {
|
|
8
|
-
DRIVING_TRAFFIC = 0;
|
|
9
|
-
DRIVING = 1;
|
|
10
|
-
WALKING = 2;
|
|
11
|
-
CYCLING = 3;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
enum MapboxPlaceType {
|
|
15
|
-
COUNTRY = 0;
|
|
16
|
-
REGION = 1;
|
|
17
|
-
POSTCODE = 2;
|
|
18
|
-
DISTRICT = 3;
|
|
19
|
-
PLACE = 4;
|
|
20
|
-
LOCALITY = 5;
|
|
21
|
-
NEIGHBORHOOD = 6;
|
|
22
|
-
STREET = 7;
|
|
23
|
-
ADDRESS = 8;
|
|
24
|
-
POI = 9;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
enum MapboxAnnotation {
|
|
28
|
-
DURATION = 0;
|
|
29
|
-
DISTANCE = 1;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
enum GeometryType {
|
|
33
|
-
GEOJSON = 0;
|
|
34
|
-
POLYLINE = 1;
|
|
35
|
-
POLYLINE6 = 2;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
enum DrivingSide {
|
|
39
|
-
LEFT = 0;
|
|
40
|
-
RIGHT = 1;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// --- Common Messages ---
|
|
44
|
-
|
|
45
|
-
message LatLng {
|
|
46
|
-
double longitude = 1;
|
|
47
|
-
double latitude = 2;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
message Geometry {
|
|
51
|
-
string type = 1; // e.g., "LineString" or "Point"
|
|
52
|
-
repeated LatLng coordinates = 2;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// --- Directions ---
|
|
56
|
-
|
|
57
|
-
message DirectionRequest {
|
|
58
|
-
repeated LatLng coordinates = 1;
|
|
59
|
-
Profile profile = 2;
|
|
60
|
-
bool steps = 3;
|
|
61
|
-
GeometryType geometries = 4;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
message MapboxManeuver {
|
|
65
|
-
string type = 1;
|
|
66
|
-
string instruction = 2;
|
|
67
|
-
LatLng location = 3;
|
|
68
|
-
string modifier = 4;
|
|
69
|
-
double bearing_before = 5;
|
|
70
|
-
double bearing_after = 6;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
message RouteLegStep {
|
|
74
|
-
MapboxManeuver maneuver = 1;
|
|
75
|
-
string name = 2;
|
|
76
|
-
double distance = 3;
|
|
77
|
-
double duration = 4;
|
|
78
|
-
string mode = 5;
|
|
79
|
-
DrivingSide driving_side = 6;
|
|
80
|
-
Geometry geometry = 7;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
message RouteLeg {
|
|
84
|
-
repeated RouteLegStep steps = 1;
|
|
85
|
-
double distance = 2;
|
|
86
|
-
double duration = 3;
|
|
87
|
-
string summary = 4;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
message Route {
|
|
91
|
-
repeated RouteLeg legs = 1;
|
|
92
|
-
double distance = 2;
|
|
93
|
-
double duration = 3;
|
|
94
|
-
Geometry geometry = 4;
|
|
95
|
-
string weight_name = 5;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
message Waypoint {
|
|
99
|
-
string name = 1;
|
|
100
|
-
LatLng location = 2;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
message DirectionResponse {
|
|
104
|
-
repeated Route routes = 1;
|
|
105
|
-
repeated Waypoint waypoints = 2;
|
|
106
|
-
string code = 3;
|
|
107
|
-
string uuid = 4;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// --- Geocoding ---
|
|
111
|
-
|
|
112
|
-
message GeocodingRequest {
|
|
113
|
-
string query = 1;
|
|
114
|
-
repeated MapboxPlaceType types = 2;
|
|
115
|
-
int32 limit = 3;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
message GeocodingContext {
|
|
119
|
-
string id = 1;
|
|
120
|
-
string text = 2;
|
|
121
|
-
string short_code = 3;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
message GeocodingFeature {
|
|
125
|
-
string id = 1;
|
|
126
|
-
string place_name = 2;
|
|
127
|
-
map<string, string> properties = 3;
|
|
128
|
-
repeated GeocodingContext context = 4;
|
|
129
|
-
Geometry geometry = 5;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
message GeocodingResponse {
|
|
133
|
-
repeated GeocodingFeature features = 1;
|
|
134
|
-
string attribution = 2;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
// --- Matrix ---
|
|
138
|
-
|
|
139
|
-
message MatrixRequest {
|
|
140
|
-
repeated LatLng coordinates = 1;
|
|
141
|
-
Profile profile = 2;
|
|
142
|
-
repeated MapboxAnnotation annotations = 3;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
message MatrixResponse {
|
|
146
|
-
string code = 1;
|
|
147
|
-
repeated Waypoint destinations = 2;
|
|
148
|
-
repeated Waypoint sources = 3;
|
|
149
|
-
repeated double durations = 4; // Flattened 2D array or use repeated Row
|
|
150
|
-
repeated double distances = 5;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
// --- Optimization ---
|
|
154
|
-
|
|
155
|
-
message OptimizationRequest {
|
|
156
|
-
repeated LatLng coordinates = 1;
|
|
157
|
-
Profile profile = 2;
|
|
158
|
-
bool roundtrip = 3;
|
|
159
|
-
string source = 4;
|
|
160
|
-
string destination = 5;
|
|
161
|
-
GeometryType geometries = 6;
|
|
162
|
-
bool steps = 7;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
message OptimizationWaypoint {
|
|
166
|
-
string name = 1;
|
|
167
|
-
LatLng location = 2;
|
|
168
|
-
int32 waypoint_index = 3;
|
|
169
|
-
int32 trips_index = 4;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
message OptimizationResponse {
|
|
173
|
-
string code = 1;
|
|
174
|
-
repeated OptimizationWaypoint waypoints = 2;
|
|
175
|
-
repeated Route trips = 3;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
// --- Search (Searchbox API) ---
|
|
179
|
-
|
|
180
|
-
message SearchSuggestRequest {
|
|
181
|
-
string q = 1;
|
|
182
|
-
string session_token = 2;
|
|
183
|
-
int32 limit = 3;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
message SearchRetrieveRequest {
|
|
187
|
-
string mapbox_id = 1;
|
|
188
|
-
string session_token = 2;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
message SearchContext {
|
|
192
|
-
string country = 1;
|
|
193
|
-
string region = 2;
|
|
194
|
-
string postcode = 3;
|
|
195
|
-
string place = 4;
|
|
196
|
-
string neighborhood = 5;
|
|
197
|
-
string street = 6;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
message SearchSuggestion {
|
|
201
|
-
string name = 1;
|
|
202
|
-
string mapbox_id = 2;
|
|
203
|
-
string feature_type = 3;
|
|
204
|
-
string place_name = 4;
|
|
205
|
-
string address = 5;
|
|
206
|
-
SearchContext context = 6;
|
|
207
|
-
string language = 7;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
message SearchFeature {
|
|
211
|
-
string id = 1;
|
|
212
|
-
Geometry geometry = 2;
|
|
213
|
-
string name = 3;
|
|
214
|
-
string mapbox_id = 4;
|
|
215
|
-
string full_address = 5;
|
|
216
|
-
SearchContext context = 6;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
message SearchResponse {
|
|
220
|
-
repeated SearchSuggestion suggestions = 1;
|
|
221
|
-
repeated SearchFeature features = 2;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
// --- Service Definition ---
|
|
225
|
-
|
|
226
|
-
service MapboxService {
|
|
227
|
-
rpc GetRoute(DirectionRequest) returns (DirectionResponse);
|
|
228
|
-
rpc SearchGeocoding(GeocodingRequest) returns (GeocodingResponse);
|
|
229
|
-
rpc GetMatrix(MatrixRequest) returns (MatrixResponse);
|
|
230
|
-
rpc OptimizeRoute(OptimizationRequest) returns (OptimizationResponse);
|
|
231
|
-
rpc SuggestSearch(SearchSuggestRequest) returns (SearchResponse);
|
|
232
|
-
rpc RetrieveSearch(SearchRetrieveRequest) returns (SearchResponse);
|
|
233
|
-
}
|