mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
22 lines
383 B
Protocol Buffer
22 lines
383 B
Protocol Buffer
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;
|
|
} |