mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-15 20:44:46 +00:00
25 lines
424 B
Protocol Buffer
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;
|
|
}
|