initial commit
This commit is contained in:
28
proto/valhalla/api.proto
Normal file
28
proto/valhalla/api.proto
Normal file
@@ -0,0 +1,28 @@
|
||||
syntax = "proto3";
|
||||
option optimize_for = LITE_RUNTIME;
|
||||
package valhalla;
|
||||
option go_package = "git.coopgo.io/coopgo-platform/routing-service/proto/valhalla";
|
||||
|
||||
import public "options.proto"; // the request, filled out by loki
|
||||
import public "trip.proto"; // the paths, filled out by thor
|
||||
import public "directions.proto"; // the directions, filled out by odin
|
||||
import public "info.proto"; // statistics about the request, filled out by loki/thor/odin
|
||||
import public "status.proto"; // info for status endpoint
|
||||
|
||||
message Api {
|
||||
// this is the request to the api
|
||||
Options options = 1;
|
||||
|
||||
// these are different responses based on the type of request you make
|
||||
Trip trip = 2; // trace_attributes
|
||||
Directions directions = 3; // route, optimized_route, trace_route, centroid
|
||||
Status status = 4; // status
|
||||
//TODO: isochrone
|
||||
//TODO: matrix
|
||||
//TODO: locate
|
||||
//TODO: height
|
||||
//TODO: expansion
|
||||
|
||||
// here we store a bit of info about what happened during request processing (stats/errors/warnings)
|
||||
Info info = 20;
|
||||
}
|
||||
Reference in New Issue
Block a user