Files
services/routing/proto/routing.proto
2021-03-18 17:21:41 +00:00

25 lines
424 B
Protocol Buffer

syntax = "proto3";
package routing;
option go_package = "./proto;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;
}