osrm-backend/docs/design/osrm-with-telenav-traffic.md
Jay fa37e1f618 Integrate Telenav Traffic Design and traffic_updater implementation (#18)
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
2019-06-17 13:50:31 -07:00

23 lines
879 B
Markdown

# OSRM with Telenav Traffic Design (Draft)
## Architecture
![osrm-with-telenav-traffic-architecture](./graph/osrm-with-telenav-traffic-architecture.mmd.png)
### OSRMTrafficUpdater(need to implement)
- as client
- connect `TrafficProxy` by `RPC`
- convert contents from `RPC` protocol to `OSRM` required `csv` format, then write to file
### TrafficProxy(need to implement)
- as server
- provide traffic contents by region
- contents include at least `from node, to node, speed`(both `from node` and `to node` are come from original mapdata)
- known issues/questions:
- can not compile `OSM` mapdata to traffic graph?
## OSRM with Traffic Startup Flow
![osrm-with-traffic-startup-flow-chart](./graph/osrm-with-traffic-startup-flow-chart.mmd.png)
## Release and Deployment Pipeline
![osrm-release-deployment-pipeline](./graph/osrm-release-deployment-pipeline.mmd.png)