mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-19 14:05:23 +00:00
add osrm to routing service (#86)
This commit is contained in:
@@ -3,22 +3,30 @@ 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;
|
||||
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 Point waypoints = 1;
|
||||
repeated Waypoint waypoints = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user