Static mapping of state IDs to light colors
curl --request GET \
--url https://v2.stopbars.com/stateid/info.jsonimport requests
url = "https://v2.stopbars.com/stateid/info.json"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://v2.stopbars.com/stateid/info.json', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));State
Static mapping of state IDs to light colors
Returns a lightweight, static list of light state codes and their direction colors.
GET
/
stateid
/
info.json
Static mapping of state IDs to light colors
curl --request GET \
--url https://v2.stopbars.com/stateid/info.jsonimport requests
url = "https://v2.stopbars.com/stateid/info.json"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://v2.stopbars.com/stateid/info.json', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Response
200
Mapping returned
Was this page helpful?
