mirror of
https://gitlab.com/mobicoop/v3/service/matcher.git
synced 2026-01-01 06:02:40 +00:00
move matching services to ad module WIP
This commit is contained in:
63
src/modules/ad/interface/grpc-controllers/matcher.proto
Normal file
63
src/modules/ad/interface/grpc-controllers/matcher.proto
Normal file
@@ -0,0 +1,63 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package matcher;
|
||||
|
||||
service MatcherService {
|
||||
rpc Match(MatchRequest) returns (Matches);
|
||||
}
|
||||
|
||||
message MatchRequest {
|
||||
bool driver = 1;
|
||||
bool passenger = 2;
|
||||
Frequency frequency = 3;
|
||||
string fromDate = 4;
|
||||
string toDate = 5;
|
||||
repeated ScheduleItem schedule = 6;
|
||||
bool strict = 7;
|
||||
repeated Waypoint waypoints = 8;
|
||||
AlgorithmType algorithmType = 9;
|
||||
int32 remoteness = 10;
|
||||
bool useProportion = 11;
|
||||
int32 proportion = 12;
|
||||
bool useAzimuth = 13;
|
||||
int32 azimuthMargin = 14;
|
||||
float maxDetourDistanceRatio = 15;
|
||||
float maxDetourDurationRatio = 16;
|
||||
int32 identifier = 22;
|
||||
}
|
||||
|
||||
message ScheduleItem {
|
||||
int32 day = 1;
|
||||
string time = 2;
|
||||
int32 margin = 3;
|
||||
}
|
||||
|
||||
message Waypoint {
|
||||
int32 position = 1;
|
||||
double lon = 2;
|
||||
double lat = 3;
|
||||
string name = 4;
|
||||
string houseNumber = 5;
|
||||
string street = 6;
|
||||
string locality = 7;
|
||||
string postalCode = 8;
|
||||
string country = 9;
|
||||
}
|
||||
|
||||
enum Frequency {
|
||||
PUNCTUAL = 1;
|
||||
RECURRENT = 2;
|
||||
}
|
||||
|
||||
enum AlgorithmType {
|
||||
PASSENGER_ORIENTED = 0;
|
||||
}
|
||||
|
||||
message Match {
|
||||
string id = 1;
|
||||
}
|
||||
|
||||
message Matches {
|
||||
repeated Match data = 1;
|
||||
int32 total = 2;
|
||||
}
|
||||
Reference in New Issue
Block a user