ChristopheJacquet / RdsSurveyor

Multi-platform Radio Data System decoder
http://rds-surveyor.jacquet.xyz/
36 stars 10 forks source link

TMC: add support for location table aliases #33

Closed mvglasow closed 5 years ago

mvglasow commented 5 years ago

Some TMC services may use location tables that are a copy of another table but have a different LTN/TABCD. This PR allows this functionality to be added to RDS Surveyor.

To use it, import a file named TABCDALIASES.DAT as part of the location data files. It can reside in its own directory, or in the directory of a location table. If a directory tree is being imported, multiple subdirectories can contain an alias file with different entries. The format is

CID;ALIAS;TABCD

where CID is the numeric TMC country identifier, ALIAS is the LTN reported in the RDS/TMC data stream, and TABCD is the LTN to use for decoding.