mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-21 15:05:01 +00:00
Routing service (#36)
This commit is contained in:
22
routing/proto/routing.proto
Normal file
22
routing/proto/routing.proto
Normal file
@@ -0,0 +1,22 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package routing;
|
||||
import "google/protobuf/wrappers.proto";
|
||||
|
||||
service Routing {
|
||||
rpc Route(RouteRequest) returns (RouteResponse) {}
|
||||
}
|
||||
|
||||
message Point {
|
||||
google.protobuf.DoubleValue latitude = 1;
|
||||
google.protobuf.DoubleValue longitude = 2;
|
||||
}
|
||||
|
||||
message RouteRequest {
|
||||
Point origin = 1;
|
||||
Point destination = 2;
|
||||
}
|
||||
|
||||
message RouteResponse {
|
||||
repeated Point waypoints = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user