Intro to Passkeys and the State of Passwordless.pptx
FIWARE - Estimated Time Arrival Implementation Montevideo
1. Estimated Time Arrival Implementation
Working with Fiware in Montevideo
Intendencia de Montevideo (IM), Uruguay
Depto. Desarrollo Sostenible e Inteligente
Jose Miguel Barone
jose.m.barone@imm.gub.uy
7. Positions Sink
▪ Records positions as fast as possible
▪ Redis cluster in memory (key/value NoSQL)
Redis
Master Node
Write only
Redis
Slave Node
Redis
Slave Node
(synchronization)
Read only
slaves
8. ETA Sink
▪ “Persist” ETA data in Redis cluster like Positions Sink
▪ Process calculations
Bus
Stop
interval T
9. Bus at Bus Stop?
▪ So ...
• Project real GPS to route
• Obtain distance to beginning of the route
• Find the right interval using distance comparison
▪ We have precalculated at load time
• Route and Bus Stops geometry
• Distance from every Bus Stop to beginning of the route
▪ Configuration parameter: distance to Bus Stop
10. Time in interval
▪ But ...
• Time at the interval will be the average with existent
value
• Smooth “anormal” values
▪ Bus it’s at Bus Stop N
• if we find it at Bus Stop N-1
• Time difference => time at the interval
▪ Configuration parameter: max difference time considered
11. The city alive
▪ The time per interval will be continuously adjusted
12. Howto get the ETA?
▪ Search the bus “backward” from the Bus Stop
▪ Accumulate the times per interval
▪ When we find it => return position and time
▪ Parameters
• Bus Stop
• Bus Line(s)
▪ Optimization: matrix with the accumulated to every pair (i,j) on a route
▪ At any change, recalculate to the end of the route