routing-service/proto/valhalla/api.proto

28 lines
1.0 KiB
Protocol Buffer
Raw Normal View History

2023-03-27 18:57:28 +00:00
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;
}