bcgov / ols-router

BC Advanced Route Planner
https://bcgov.github.io/ols-router/
Apache License 2.0
23 stars 11 forks source link

RDM Sync Prototype #379

Closed cmhodgson closed 1 month ago

cmhodgson commented 2 months ago

Also includes:

Important note: New configuration parameters must be added to bgeo_configuration_params.csv: ROUTER,rdmUpdateInterval,3600 ROUTER,rdmApiUrl,"https://tst-rdm-public.th.gov.bc.ca/api"

rdmUpdateInterval is the number of seconds between downloads of the RDM data. It could go as low as 300 (5 min) - however there is no smart caching, date-based "only get the updates" or anything like that so it always downloads all 6500+ restrictions every X seconds. It only takes about 15 seconds to do the download and process the restrictions.

rdmApiUrl is the url to the RDM api. As far as I am aware, tst is the current one we are meant to be using.

cmhodgson commented 1 month ago

Now added a new API for general status info (currently only including RDM-related info): /status