Files
uta-trax-api/proto/schema.proto
T
2025-07-27 12:40:20 -04:00

32 lines
527 B
Protocol Buffer

syntax = "proto3";
option go_package = "github.com/cjdenio/uta-trax-api/proto";
message VehicleFeed {
enum Line {
LINE_UNSPECIFIED = 0;
GREEN = 1;
RED = 2;
BLUE = 3;
STREETCAR = 4;
FRONTRUNNER = 5;
}
message Station {
string id = 1;
string name = 2;
float lat = 3;
float lon = 4;
}
message Vehicle {
float lat = 1;
float lon = 2;
Line line = 3;
int32 direction = 4;
string id = 5;
Station nearest_station = 6;
}
repeated Vehicle vehicles = 1;
}