add osrm to routing service (#86)

This commit is contained in:
Asim Aslam
2021-04-26 11:42:08 +01:00
committed by GitHub
parent 7ae45b522e
commit d119807d1c
10 changed files with 345 additions and 135 deletions

View File

@@ -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;
}