feat(vessels): present AISStream + VesselAPI as two independent providers
- keystore KEY_REGISTRY copy splits the two keys (open/shared US-coast WS vs commercial Hormuz 5x/day REST); VesselAPI no longer reads as an AIS backup. - vesselapi.py docstring drops 'fallback'; states both are first-class. - /api/vessels docstring: last-known is the union (extra.src aisstream vs vesselapi). - tests: VesselAPI idles/polls independently of the AISStream key.
This commit is contained in:
parent
1f23083351
commit
e7429a4161
4 changed files with 65 additions and 9 deletions
|
|
@ -1,8 +1,10 @@
|
|||
"""VesselAPI REST poller — quota-capped AIS fallback (free tier 150 calls/mo).
|
||||
"""VesselAPI REST poller — quota-capped AIS for the Middle East (free tier 150 calls/mo).
|
||||
|
||||
AISStream (WebSocket) keeps US coasts live; VesselAPI fills the Middle East
|
||||
blind spot (Strait of Hormuz default box). This worker polls the REST
|
||||
``GET /v1/location/vessels/bounding-box`` endpoint at most
|
||||
VesselAPI and AISStream are two independent, first-class vessel providers —
|
||||
not a primary/fallback pair. AISStream (WebSocket) owns live US-coast AIS;
|
||||
VesselAPI (REST) covers the Strait of Hormuz (default box) where AISStream
|
||||
has no coverage. Missing one key never disables the other. This worker polls
|
||||
the REST ``GET /v1/location/vessels/bounding-box`` endpoint at most
|
||||
``VESSELAPI_MAX_CALLS_PER_DAY`` (default 5) *successful 2xx* calls per UTC day
|
||||
and upserts the results into the shared ``vessel_last_known`` store.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue