ols-router icon indicating copy to clipboard operation
ols-router copied to clipboard

RDM Sync Prototype

Open cmhodgson opened this issue 9 months ago • 0 comments

Also includes:

  • Status API for RDM error messages - /status/RDM
  • Support for RDM restrictions of type LENGTH
  • Include all input params in all output formats

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 avatar May 09 '24 15:05 cmhodgson