From a94f032acdeb649582762806e147b0ccfe432cc7 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Wed, 19 May 2021 09:16:26 +0100 Subject: [PATCH] add routing comments --- routing/proto/routing.proto | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/routing/proto/routing.proto b/routing/proto/routing.proto index 75f665c..e58fcd7 100644 --- a/routing/proto/routing.proto +++ b/routing/proto/routing.proto @@ -13,7 +13,9 @@ service Routing { } message Point { + // Lat e.g 52.523219 double latitude = 1; + // Long e.g 13.428555 double longitude = 2; } @@ -54,8 +56,11 @@ message Direction { repeated Intersection intersections = 7; } +// Turn by turn directions from a starting and endpoint including maneuvers and bearings message DirectionsRequest { + // The staring point for the journey Point origin = 1; + // The destinationg of the journey Point destination = 2; } @@ -70,8 +75,11 @@ message DirectionsResponse { double duration = 4; } +// Get the eta for a route from origin to destination. The eta is an estimated time based on car routes message EtaRequest { + // The starting point for the eta calculation Point origin = 1; + // The end point for the eta calculation Point destination = 2; // type of transport e.g car, foot, bicycle string type = 3; @@ -84,6 +92,7 @@ message EtaResponse { double duration = 1; } +// Retrieve a route as a simple list of gps points along with total distance and estimated duration message RouteRequest { // Point of origin for the trip Point origin = 1;