mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-16 21:14:36 +00:00
33 lines
573 B
Protocol Buffer
33 lines
573 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package routing;
|
|
option go_package = "./proto;routing";
|
|
|
|
service Routing {
|
|
rpc Route(RouteRequest) returns (RouteResponse) {}
|
|
}
|
|
|
|
message Point {
|
|
double latitude = 1;
|
|
double longitude = 2;
|
|
}
|
|
|
|
message Waypoint {
|
|
string name = 1;
|
|
double distance = 2;
|
|
Point location = 3;
|
|
}
|
|
|
|
message RouteRequest {
|
|
// Point of origin for the trip
|
|
Point origin = 1;
|
|
// Point of destination for the trip
|
|
Point destination = 2;
|
|
// Mode of transport e.g driving, walking, cycling
|
|
string transport = 3;
|
|
}
|
|
|
|
message RouteResponse {
|
|
repeated Waypoint waypoints = 1;
|
|
}
|