Fix for failed CRS match with RDNG4AB
This commit is contained in:
parent
99fd2e3e8d
commit
c23baffa36
@ -1 +1 @@
|
|||||||
Subproject commit 5b2ea9a418a2cb7e0d6e65fe3ceacfb83ca026e1
|
Subproject commit 194f20ea6fe89c423af752f2869d67c44ee194f5
|
@ -87,6 +87,8 @@ def organise_svc(input):
|
|||||||
return {'stops': stop_tiplocs, 'vstp': vstp}
|
return {'stops': stop_tiplocs, 'vstp': vstp}
|
||||||
|
|
||||||
def convert_tiploc_to_crs(tiploc):
|
def convert_tiploc_to_crs(tiploc):
|
||||||
|
if tiploc == 'RDNG4AB':
|
||||||
|
return 'rdg'
|
||||||
res = requests.get(OB_TIP_BASE_URL + tiploc.upper(), headers=HEADERS)
|
res = requests.get(OB_TIP_BASE_URL + tiploc.upper(), headers=HEADERS)
|
||||||
if res.status_code == 200:
|
if res.status_code == 200:
|
||||||
json_res = res.json()
|
json_res = res.json()
|
||||||
|
Reference in New Issue
Block a user