-
Notifications
You must be signed in to change notification settings - Fork 0
/
mama.proto
39 lines (30 loc) · 811 Bytes
/
mama.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
syntax = "proto3";
package mama.server.api;
import "google/protobuf/timestamp.proto";
import "google/protobuf/wrappers.proto";
service MamaService {
rpc Match (MapMatchingRequest) returns (MapMatchingResponse) {}
}
message Location {
google.protobuf.Timestamp timestamp = 1;
double latitude = 2;
double longitude = 3;
google.protobuf.DoubleValue bearing = 4;
google.protobuf.DoubleValue speed = 5;
}
message MapMatchingRequestEntry {
Location location = 1;
bytes state = 2;
}
message MapMatchingRequest {
repeated MapMatchingRequestEntry entries = 1;
}
message MapMatchingResponseEntry {
// map-matched location
Location location = 1;
// state to be passed to the next request
bytes state = 2;
}
message MapMatchingResponse {
repeated MapMatchingResponseEntry entries = 1;
}