Update README for castle-rock; improve nebraska workaround
This commit is contained in:
parent
a44f8c23b6
commit
c125525413
|
@ -12,30 +12,30 @@ Many states are through one of a few providers:
|
||||||
| AR | ARDOT | | | | | |
|
| AR | ARDOT | | | | | |
|
||||||
| AZ | ADOT | | | | | |
|
| AZ | ADOT | | | | | |
|
||||||
| CA | Caltrans | | | | | |
|
| CA | Caltrans | | | | | |
|
||||||
| CO | CDOT | | | | | |
|
| CO | CDOT | COtrip | 832 | 686 | Castle Rock | https://maps.cotrip.org/ |
|
||||||
| CT | CTDOT | | | | | |
|
| CT | CTDOT | | | | | |
|
||||||
| DE | DelDOT | | | | | |
|
| DE | DelDOT | | | | | |
|
||||||
| FL | FDOT | | | | | |
|
| FL | FDOT | | | | | |
|
||||||
| GA | GDOT | 511GA | 1 | 3416 | Travel IQ | https://511ga.org/ |
|
| GA | GDOT | 511GA | 1 | 3416 | Travel IQ | https://511ga.org/ |
|
||||||
| HI | HDOT | | | | | |
|
| HI | HDOT | | | | | |
|
||||||
| IA | Iowa DOT | | | | | |
|
| IA | Iowa DOT | 511IA | 446 | 485 | Castle Rock | https://511ia.org/ |
|
||||||
| ID | ITD | | | | | |
|
| ID | ITD | | | | | |
|
||||||
| IL | IDOT | | | | | |
|
| IL | IDOT | | | | | |
|
||||||
| IN | IDOT | | | | | |
|
| IN | IDOT | TrafficWise | 0 | 640 | Castle Rock | https://511in.org/ |
|
||||||
| KS | KDOT | | | | | |
|
| KS | KDOT | KanDrive | 382 | 167 | Castle Rock | https://www.kandrive.gov/ |
|
||||||
| KY | KYTC | | | | | |
|
| KY | KYTC | | | | | |
|
||||||
| LA | DOTD | 511 | 0 | 288 | Travel IQ | https://www.511la.org/ |
|
| 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 | | | | | |
|
| MD | MDOT | | | | | |
|
||||||
| ME | MaineDOT | | | | | |
|
| ME | MaineDOT | | | | | |
|
||||||
| MI | MDOT | | | | | |
|
| 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/ |
|
| MO | MoDOT | | | | | https://traveler.modot.org/map/ |
|
||||||
| MS | MDOT | | | | | |
|
| MS | MDOT | | | | | |
|
||||||
| MT | MDT | | | | | |
|
| MT | MDT | | | | | |
|
||||||
| NC | NCDOT | | | | | |
|
| NC | NCDOT | | | | | |
|
||||||
| ND | NDDOT | | | | | |
|
| ND | NDDOT | | | | | |
|
||||||
| NE | NDOT | | | | | |
|
| NE | NDOT | Nebraska 511 | 919 | 0 | Castle Rock | https://new.511.nebraska.gov/ |
|
||||||
| NH | NHDOT | | | | | |
|
| NH | NHDOT | | | | | |
|
||||||
| NJ | NJDOT | | | | | |
|
| NJ | NJDOT | | | | | |
|
||||||
| NM | NMDOT | | | | | |
|
| NM | NMDOT | | | | | |
|
||||||
|
|
|
@ -65,7 +65,11 @@ for state, baseURL in states.items():
|
||||||
print(f"warn: Differing types detected: {c['views']}")
|
print(f"warn: Differing types detected: {c['views']}")
|
||||||
if view['category'] == 'VIDEO':
|
if view['category'] == 'VIDEO':
|
||||||
if state == "Nebraska":
|
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
|
videoCount += 1
|
||||||
if len(view['sources']) != 1:
|
if len(view['sources']) != 1:
|
||||||
raise Exception(f"Unexpected number of sources ({len(view['sources'])})")
|
raise Exception(f"Unexpected number of sources ({len(view['sources'])})")
|
||||||
|
|
Loading…
Reference in a new issue