Fix for failed CRS match with RDNG4AB

This commit is contained in:
Fred Boniface 2024-02-22 16:18:47 +00:00
parent 99fd2e3e8d
commit c23baffa36
2 changed files with 3 additions and 1 deletions

@ -1 +1 @@
Subproject commit 5b2ea9a418a2cb7e0d6e65fe3ceacfb83ca026e1
Subproject commit 194f20ea6fe89c423af752f2869d67c44ee194f5

View File

@ -87,6 +87,8 @@ def organise_svc(input):
return {'stops': stop_tiplocs, 'vstp': vstp}
def convert_tiploc_to_crs(tiploc):
if tiploc == 'RDNG4AB':
return 'rdg'
res = requests.get(OB_TIP_BASE_URL + tiploc.upper(), headers=HEADERS)
if res.status_code == 200:
json_res = res.json()