feat: Define thrift protocol with traffic service and implement logic which generates traffic update file for OSRM - OSRM with telenav traffic architecture - Define traffic protocol in thrift and generate de-coding code - Implement logic to pull result from traffic server and generate csv which could be used for OSRM customization Closes #1, #2, #3
14 lines
230 B
Thrift
14 lines
230 B
Thrift
|
|
struct Flow {
|
|
1: required i64 fromId;
|
|
2: required i64 toId;
|
|
3: required i64 wayId;
|
|
4: required double speed;
|
|
5: required i32 trafficLevel;
|
|
}
|
|
|
|
service ProxyService {
|
|
list<Flow> getAllFlows()
|
|
Flow getFlowById(1:i64 wayId)
|
|
}
|