Smoothex / cloud-based-traffic-light-assistant

A React Native navigation app with voice I/O and audio signalling for visually impaired people
1 stars 0 forks source link

Test out the Traffic API #9

Closed krutarth4 closed 2 months ago

krutarth4 commented 4 months ago

Es gibt verschiedene (je nach Client mehr oder weniger gut funktionierende) Push Varianten bei denen die Verbindung offen bleibt:

plainPush

jsonPush

jsonEventStream

serverSentEvents

ndJson

jsonLines

jsonStream

jsonSeq

Teilweise ist das einfach nur ein anderer Content-Type. Für JSON als Stream gibt es leider keinen einheitlichen, standardisierten Weg.

Spats kommen bei dem Streaming Endpoint („spats“ im Plural) alle 30 Sekunden. Sollte aber reichen, da die Prediction mindestens eine Minute in die Zukunft geht und das alles recht statisch ist. Man kann mehrere intersection Parameter angeben. Das ist auch der Grund warum es bislang kein Long-Polling gibt, da der Use-Case normalerweise war eine ganz Reihe von Intersections zu abonnieren (der Endpoint „spat“ (im Singular) am Ende ist relativ neu).

krutarth4 commented 4 months ago

also check how much of the location is covered through the API, or which particular part of Berlin's traffic light is available

krutarth4 commented 3 months ago

parsedMap.md

krutarth4 commented 3 months ago

only two crossings are available for testing