mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
* Autogenerate services.m3o.com * Openapi for all * Gen * Fix * Whaat * Fix dep * Fix * Hmm * Install make * Debug * Debug 1 * Location -> locations * Fix * Intall protoc gen micro * F * F * F * Push * Rename secret * Fix npm install * Fix script * Fix v2 * Ignore errors * Ignore v2 * F * F * F * Docs index * Add hugo theme * Hugo tania fixes * Change gen * Change gen 2 * Install hugo * Change gen * Gen fix * Change hugo install * Change hugo install * CNAME * Change articles wording * Tiny fix * Fix gen * Redoc it all * Fix gen * Fixing up protos * Fix proto * Fix gen * Fix * Trigger build * Fix copy * Openapi docs * Flatten * Changes * No date vol2 * Changes * Add make to chat * Fixes * Change * api spec * replace RSS * fix link * Dont continue on error * increase the width * use micro at master * change box colours * move some things * Pushing new readmes to see how they look like * Add skip file * Readmes * Nicer api link * Remove stutter * FIx mistake * set service font weight * Messages readme fix * add other font bold * Notes * Remove post from url * Revert "Remove post from url" This reverts commit 5fea2c23d0bafa910f5dc4d4cc63f71f578530e3. * move exampleSite to site * replace exampleSite with site * update readme * use filename for post * update index * Add source urls * set source as params * set source as params * Fix entries * Generator in go * Fixes to generator * F * Change doc gen * FIx cname * Fixing protos * Change to makefiles * Fix gen script Co-authored-by: Asim Aslam <asim@aslam.me>
44 lines
1.2 KiB
Protocol Buffer
44 lines
1.2 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package etas;
|
|
option go_package = "proto;etas";
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
service ETAs {
|
|
rpc Calculate(Route) returns (Response);
|
|
}
|
|
|
|
message Point {
|
|
// id for the point, this is returned in the response with additional information such as estimated
|
|
// arrival time and estimated departure time.
|
|
string id = 1;
|
|
// the latitude for the point
|
|
double latitude = 2;
|
|
// the longitude for the point
|
|
double longitude = 3;
|
|
// the estimated time the vehicle will spend at the point between arrival and departure (unit
|
|
// minutes).
|
|
int32 wait_time = 4;
|
|
}
|
|
|
|
message Route {
|
|
// pickup is where the route must start, e.g. a depot
|
|
Point pickup = 1;
|
|
// waypoints are points the vehicle must pass on their route
|
|
repeated Point waypoints = 2;
|
|
// start time specifies the time the vehicle will arrive at the pickup. If no value is provided,
|
|
// the current time will be used
|
|
google.protobuf.Timestamp start_time = 3;
|
|
}
|
|
|
|
message Response {
|
|
// points contains the ETAs for each point. The first point will be the pickup and the subsequent
|
|
// points are the waypoints
|
|
map<string,ETA> points = 1;
|
|
}
|
|
|
|
message ETA {
|
|
google.protobuf.Timestamp estimated_arrival_time = 1;
|
|
google.protobuf.Timestamp estimated_departure_time = 2;
|
|
} |