mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-21 02:32:18 +00:00
fix(traffic): fall back to TomTom Orbis flow tiles when the key is refused
TomTom keys are assigned products. A key without the TomTom Maps Traffic product gets HTTP 403 on traffic/map/4/tile/flow, the only endpoint the proxy called, so live traffic never loaded and the layer reported "TomTom upstream unreachable". - Proxy: on 403, ask the Orbis Maps flow endpoint (apiVersion 2) and keep whichever endpoint answered until the key changes. - Decoder: read Orbis relative_speed and road_category into the existing segment shape. - When both endpoints refuse the key, answer 403 key_rejected, report keyRejected on /api/tomtom/status, show "TomTom key rejected" and leave upstream alone for five minutes instead of spending the tile budget. Fixes #1809
This commit is contained in:
1 parent
98a26787a4
commit
b711e9e412
24 files changed
+427
-12
No files matched your search
@@ -1247,6 +1247,7 @@
|
||||
"Moving dots colored by live flow": "Points mobiles colorés selon le trafic en direct",
|
||||
"Moving dots": "Points mobiles",
|
||||
"TomTom key unavailable": "Clé TomTom indisponible",
|
||||
"TomTom key rejected": "Clé TomTom refusée",
|
||||
"TomTom daily budget reached": "Quota quotidien TomTom atteint",
|
||||
"Monthly traffic allowance used": "Quota mensuel de trafic épuisé",
|
||||
"Traffic rate limit reached": "Limite de requêtes de trafic atteinte",
|
||||
|
||||
Reference in new issue
Block a user