mirror of
https://github.com/cjdenio/uta-trax-api.git
synced 2026-08-04 22:06:34 +00:00
33 lines
552 B
Protocol Buffer
33 lines
552 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;
|
|
string headsign = 7;
|
|
}
|
|
|
|
repeated Vehicle vehicles = 1;
|
|
}
|