Update README for castle-rock; improve nebraska workaround

This commit is contained in:
Chandler Swift 2024-02-03 01:36:11 -06:00
parent a44f8c23b6
commit c125525413
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F
2 changed files with 12 additions and 8 deletions

View file

@ -12,30 +12,30 @@ Many states are through one of a few providers:
| AR | ARDOT | | | | | |
| AZ | ADOT | | | | | |
| CA | Caltrans | | | | | |
| CO | CDOT | | | | | |
| CO | CDOT | COtrip | 832 | 686 | Castle Rock | https://maps.cotrip.org/ |
| CT | CTDOT | | | | | |
| DE | DelDOT | | | | | |
| FL | FDOT | | | | | |
| GA | GDOT | 511GA | 1 | 3416 | Travel IQ | https://511ga.org/ |
| HI | HDOT | | | | | |
| IA | Iowa DOT | | | | | |
| IA | Iowa DOT | 511IA | 446 | 485 | Castle Rock | https://511ia.org/ |
| ID | ITD | | | | | |
| IL | IDOT | | | | | |
| IN | IDOT | | | | | |
| KS | KDOT | | | | | |
| IN | IDOT | TrafficWise | 0 | 640 | Castle Rock | https://511in.org/ |
| KS | KDOT | KanDrive | 382 | 167 | Castle Rock | https://www.kandrive.gov/ |
| KY | KYTC | | | | | |
| LA | DOTD | 511 | 0 | 288 | Travel IQ | https://www.511la.org/ |
| MA | MassDOT | | | | | |
| MA | MassDOT | Mass511 | 20 | 225 | Castle Rock | https://mass511.com/ |
| MD | MDOT | | | | | |
| ME | MaineDOT | | | | | |
| MI | MDOT | | | | | |
| MN | MNDOT | 511MN | most | | Castle Rock | https://511mn.org/ |
| MN | MNDOT | 511MN | 647 | 1131 | Castle Rock | https://511mn.org/ |
| MO | MoDOT | | | | | https://traveler.modot.org/map/ |
| MS | MDOT | | | | | |
| MT | MDT | | | | | |
| NC | NCDOT | | | | | |
| ND | NDDOT | | | | | |
| NE | NDOT | | | | | |
| NE | NDOT | Nebraska 511 | 919 | 0 | Castle Rock | https://new.511.nebraska.gov/ |
| NH | NHDOT | | | | | |
| NJ | NJDOT | | | | | |
| NM | NMDOT | | | | | |

View file

@ -65,7 +65,11 @@ for state, baseURL in states.items():
print(f"warn: Differing types detected: {c['views']}")
if view['category'] == 'VIDEO':
if state == "Nebraska":
print(c)
# Nebraska has mislabeled a small amount of their data;
# there is one location with 4 views labeled as "VIDEO"
# which are not, in fact, video-containing views
view['category'] = "PHOTO"
continue
videoCount += 1
if len(view['sources']) != 1:
raise Exception(f"Unexpected number of sources ({len(view['sources'])})")