Feature/improve with traffic design (#34)
* docs: update osrm with telenav traffic design * docs: update osrm with traffic design
This commit is contained in:
parent
cbd192c52e
commit
2b0db9f752
@ -11,8 +11,8 @@ sequenceDiagram
|
|||||||
J ->> U: Build done
|
J ->> U: Build done
|
||||||
|
|
||||||
U ->> K: Trigger deployment by Kubernetes
|
U ->> K: Trigger deployment by Kubernetes
|
||||||
Loop e.g. every 5 minutes
|
Loop e.g. every 20 minutes
|
||||||
K ->> K: Blue/Green deploy based on docker image
|
K ->> K: Rolling update based on docker image
|
||||||
note over K: update traffic when container startup
|
note over K: update traffic when container startup
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 36 KiB |
@ -12,11 +12,17 @@ linkStyle 0 stroke:#FFF,stroke-width:0;
|
|||||||
User["User"] -- request --> OSRM_ROUTED["osrm-routed"]
|
User["User"] -- request --> OSRM_ROUTED["osrm-routed"]
|
||||||
|
|
||||||
subgraph OSRM Containers
|
subgraph OSRM Containers
|
||||||
|
OSRM_Traffic_Updater["OSRMTrafficUpdater"]
|
||||||
|
OSRM_Customize["osrm-customize"]
|
||||||
OSRM_ROUTED
|
OSRM_ROUTED
|
||||||
OSRM_Traffic_Updater["OSRMTrafficUpdater"]
|
|
||||||
style OSRM_Traffic_Updater fill:#acbfff,stroke-dasharray: 5, 5
|
style OSRM_Traffic_Updater fill:#acbfff,stroke-dasharray: 5, 5
|
||||||
|
style OSRM_Customize fill:#acbfff,stroke-dasharray: 5, 5
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
OSRM_Traffic_Updater -- RPC --> TrafficProxy["TrafficProxy"]
|
OSRM_Traffic_Updater -- RPC --> TrafficProxy["TrafficProxy"]
|
||||||
subgraph Traffic Containers
|
subgraph Traffic Containers
|
||||||
TrafficProxy
|
TrafficProxy
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 21 KiB |
@ -15,8 +15,9 @@ style PrepareCompiledMapdata fill:#acbfff,stroke-dasharray: 5, 5
|
|||||||
PrepareCompiledMapdata --> ConnectTrafficProxy["OSRMTrafficUpdate Connect TrafficProxy by RPC"]
|
PrepareCompiledMapdata --> ConnectTrafficProxy["OSRMTrafficUpdate Connect TrafficProxy by RPC"]
|
||||||
|
|
||||||
subgraph OSRM Traffic Updater
|
subgraph OSRM Traffic Updater
|
||||||
ConnectTrafficProxy --> PullLatestTraffic["Pull latest traffic(from node, to node, speed) of full region"]
|
ConnectTrafficProxy --> PullLatestTraffic["Pull latest traffic(+/-wayid, speed) of full region"]
|
||||||
PullLatestTraffic --> WriteToCSV["Write to traffic.csv(as OSRM format)"]
|
PullLatestTraffic --> ConvertWayid2NodeIds["Convert wayid to nodeids, i.e. (from_nodeid, to_nodeid, speed)"]
|
||||||
|
ConvertWayid2NodeIds --> WriteToCSV["Write to traffic.csv(from_nodeid, to_nodeid, speed)"]
|
||||||
WriteToCSV --> ExitOSRMTrafficUpdater["Exit ExitOSRMTrafficUpdater"]
|
WriteToCSV --> ExitOSRMTrafficUpdater["Exit ExitOSRMTrafficUpdater"]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 90 KiB |
@ -1,17 +1,17 @@
|
|||||||
# OSRM with Telenav Traffic Design (Draft)
|
# OSRM with Telenav Traffic Design
|
||||||
|
|
||||||
## Architecture
|
## Architecture
|
||||||

|

|
||||||
|
|
||||||
### OSRMTrafficUpdater
|
### OSRMTrafficUpdater
|
||||||
- as client
|
- as `RPC` client
|
||||||
- connect `TrafficProxy` by `RPC`
|
- connect `TrafficProxy` by `RPC`
|
||||||
- convert contents from `RPC` protocol to `OSRM` required `csv` format, then write to file
|
- convert contents from `RPC` protocol to `OSRM` required `csv` format, then write to file
|
||||||
|
|
||||||
### TrafficProxy
|
### TrafficProxy
|
||||||
- as server
|
- as `RPC` server
|
||||||
- provide traffic contents by region
|
- 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)
|
- contents include at least `+/-wayid, speed`
|
||||||
|
|
||||||
## OSRM with Traffic Startup Flow
|
## OSRM with Traffic Startup Flow
|
||||||

|

|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user