From 043fa8df05fc5941835a91cbe66498843c9744d9 Mon Sep 17 00:00:00 2001 From: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com> Date: Thu, 23 Nov 2023 21:40:22 -0500 Subject: [PATCH] Switch to urbanized area population (#144) New methodology. This impacts the parking score and city type. --- data/score-cards.json | 372 +++++++++++++++++++++--------------------- src/js/setUpSite.js | 4 +- updatePop.py | 23 +++ 3 files changed, 211 insertions(+), 188 deletions(-) create mode 100644 updatePop.py diff --git a/data/score-cards.json b/data/score-cards.json index dedaa36..3df5757 100644 --- a/data/score-cards.json +++ b/data/score-cards.json @@ -4,18 +4,18 @@ "Percentage": "33%", "cityType": "core city", "Population": "564,559", - "Metro Population": "916,528", - "Parking Score": "N/A", + "urbanizedAreaPopulation": "769,837", + "Parking Score": "73", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Albuquerque_NM.html" }, "anaheim-ca": { "Name": "Anaheim, CA", "Percentage": "23%", - "cityType": "node city", + "cityType": "principal", "Population": "346,824", - "Metro Population": "3,186,989", - "Parking Score": "61", + "urbanizedAreaPopulation": "12,237,376", + "Parking Score": "49", "Reforms": "no reforms" }, "anchorage-ak": { @@ -23,7 +23,7 @@ "Percentage": "30%", "cityType": "core city", "Population": "291,247", - "Metro Population": "398,328", + "urbanizedAreaPopulation": "249,252", "Parking Score": "N/A", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Anchorage_AK.html" @@ -31,10 +31,10 @@ "arlington-tx": { "Name": "Arlington, TX", "Percentage": "42%", - "cityType": "satellite city", + "cityType": "suburb", "Population": "394,218", - "Metro Population": "7,637,387", - "Parking Score": "90", + "urbanizedAreaPopulation": "5,732,354", + "Parking Score": "N/A", "Reforms": "no reforms" }, "atlanta-ga": { @@ -42,18 +42,18 @@ "Percentage": "25%", "cityType": "core city", "Population": "498,715", - "Metro Population": "6,089,815", - "Parking Score": "79", + "urbanizedAreaPopulation": "5,100,112", + "Parking Score": "77", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Atlanta_GA.html" }, "aurora-co": { "Name": "Aurora, CO", "Percentage": "26%", - "cityType": "satellite city", + "cityType": "suburb", "Population": "386,261", - "Metro Population": "2,963,821", - "Parking Score": "43", + "urbanizedAreaPopulation": "2,686,147", + "Parking Score": "N/A", "Reforms": "no reforms" }, "austin-tx": { @@ -61,7 +61,7 @@ "Percentage": "17%", "cityType": "core city", "Population": "961,855", - "Metro Population": "2,283,371", + "urbanizedAreaPopulation": "1,809,888", "Parking Score": "42", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Austin_TX.html" @@ -71,8 +71,8 @@ "Percentage": "26%", "cityType": "core city", "Population": "403,455", - "Metro Population": "909,235", - "Parking Score": "N/A", + "urbanizedAreaPopulation": "570,235", + "Parking Score": "43", "Reforms": "no reforms" }, "baltimore-md": { @@ -80,8 +80,8 @@ "Percentage": "11%", "cityType": "core city", "Population": "585,708", - "Metro Population": "2,844,510", - "Parking Score": "29", + "urbanizedAreaPopulation": "2,212,038", + "Parking Score": "36", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Baltimore_MD.html" }, @@ -90,7 +90,7 @@ "Percentage": "27%", "cityType": "core city", "Population": "200,733", - "Metro Population": "1,115,289", + "urbanizedAreaPopulation": "774,956", "Parking Score": "55", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Birmingham_AL.html" @@ -100,8 +100,8 @@ "Percentage": "6%", "cityType": "core city", "Population": "676,216", - "Metro Population": "4,941,632", - "Parking Score": "17", + "urbanizedAreaPopulation": "4,382,009", + "Parking Score": "22", "Reforms": "passed", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Boston_MA.html" }, @@ -110,8 +110,8 @@ "Percentage": "29%", "cityType": "core city", "Population": "278,349", - "Metro Population": "1,166,902", - "Parking Score": "62", + "urbanizedAreaPopulation": "948,864", + "Parking Score": "67", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Buffalo_NY.html" }, @@ -120,8 +120,8 @@ "Percentage": "18%", "cityType": "core city", "Population": "874,541", - "Metro Population": "2,660,329", - "Parking Score": "46", + "urbanizedAreaPopulation": "1,379,873", + "Parking Score": "35", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Charlotte_NC.html" }, @@ -130,8 +130,8 @@ "Percentage": "4%", "cityType": "core city", "Population": "2,747,231", - "Metro Population": "9,618,502", - "Parking Score": "14", + "urbanizedAreaPopulation": "8,671,746", + "Parking Score": "20", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Chicago_IL.html" }, @@ -140,7 +140,7 @@ "Percentage": "20%", "cityType": "core city", "Population": "309,317", - "Metro Population": "2,256,884", + "urbanizedAreaPopulation": "1,686,744", "Parking Score": "48", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Cincinnati_OH.html" @@ -150,8 +150,8 @@ "Percentage": "26%", "cityType": "core city", "Population": "373,091", - "Metro Population": "2,088,251", - "Parking Score": "66", + "urbanizedAreaPopulation": "1,712,178", + "Parking Score": "64", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Cleveland_OH.html" }, @@ -160,8 +160,8 @@ "Percentage": "21%", "cityType": "core city", "Population": "478,961", - "Metro Population": "755,105", - "Parking Score": "N/A", + "urbanizedAreaPopulation": "632,494", + "Parking Score": "28", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/ColoradoSprings_CO.html" }, @@ -170,8 +170,8 @@ "Percentage": "27%", "cityType": "core city", "Population": "905,672", - "Metro Population": "2,138,926", - "Parking Score": "68", + "urbanizedAreaPopulation": "1,567,254", + "Parking Score": "59", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Columbus_OH.html" }, @@ -180,17 +180,17 @@ "Percentage": "33%", "cityType": "core city", "Population": "317,863", - "Metro Population": "421,933", + "urbanizedAreaPopulation": "339,066", "Parking Score": "N/A", "Reforms": "no reforms" }, "dallas-tx": { "Name": "Dallas, TX", "Percentage": "24%", - "cityType": "twin city", + "cityType": "core city", "Population": "1,304,442", - "Metro Population": "7,637,387", - "Parking Score": "74", + "urbanizedAreaPopulation": "5,732,354", + "Parking Score": "79", "Reforms": "Proposed", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Dallas_TX.html" }, @@ -199,8 +199,8 @@ "Percentage": "12%", "cityType": "core city", "Population": "715,522", - "Metro Population": "2,963,821", - "Parking Score": "25", + "urbanizedAreaPopulation": "2,686,147", + "Parking Score": "33", "Reforms": "no reforms" }, "detroit-mi": { @@ -208,28 +208,28 @@ "Percentage": "30%", "cityType": "core city", "Population": "639,614", - "Metro Population": "4,392,041", - "Parking Score": "86", + "urbanizedAreaPopulation": "3,776,890", + "Parking Score": "92", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Detroit_MI.html" }, "el-paso-tx": { "Name": "El Paso, TX", "Percentage": "23%", - "cityType": "twin city", + "cityType": "core city", "Population": "678,815", - "Metro Population": "868,859", - "Parking Score": "N/A", + "urbanizedAreaPopulation": "854,584", + "Parking Score": "46", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/ElPaso_TX.html" }, "fort-worth-tx": { "Name": "Fort Worth, TX", "Percentage": "27%", - "cityType": "twin city", + "cityType": "principal", "Population": "918,377", - "Metro Population": "7,637,387", - "Parking Score": "85", + "urbanizedAreaPopulation": "5,732,354", + "Parking Score": "61", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/FortWorth_TX.html" }, @@ -238,8 +238,8 @@ "Percentage": "30%", "cityType": "core city", "Population": "542,107", - "Metro Population": "1,008,654", - "Parking Score": "65", + "urbanizedAreaPopulation": "717,589", + "Parking Score": "61", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Fresno_CA.html" }, @@ -248,8 +248,8 @@ "Percentage": "28%", "cityType": "core city", "Population": "198,917", - "Metro Population": "1,087,592", - "Parking Score": "58", + "urbanizedAreaPopulation": "605,666", + "Parking Score": "51", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/GrandRapids_MI.html" }, @@ -258,7 +258,7 @@ "Percentage": "32%", "cityType": "core city", "Population": "299,035", - "Metro Population": "776,566", + "urbanizedAreaPopulation": "338,928", "Parking Score": "N/A", "Reforms": "no reforms" }, @@ -267,18 +267,18 @@ "Percentage": "22%", "cityType": "core city", "Population": "121,054", - "Metro Population": "1,150,509", - "Parking Score": "41", + "urbanizedAreaPopulation": "977,158", + "Parking Score": "45", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Hartford_CT.html" }, "henderson-nv": { "Name": "Henderson, NV", "Percentage": "28%", - "cityType": "satellite city", + "cityType": "suburb", "Population": "317,610", - "Metro Population": "2,265,461", - "Parking Score": "46", + "urbanizedAreaPopulation": "2,196,623", + "Parking Score": "N/A", "Reforms": "no reforms" }, "honolulu-hi": { @@ -286,8 +286,8 @@ "Percentage": "15%", "cityType": "core city", "Population": "350,964", - "Metro Population": "1,016,508", - "Parking Score": "20", + "urbanizedAreaPopulation": "853,252", + "Parking Score": "21", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Honolulu_HI.html" }, @@ -296,8 +296,8 @@ "Percentage": "26%", "cityType": "core city", "Population": "2,302,792", - "Metro Population": "7,122,240", - "Parking Score": "80", + "urbanizedAreaPopulation": "5,853,575", + "Parking Score": "85", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Houston_TX.html" }, @@ -306,8 +306,8 @@ "Percentage": "24%", "cityType": "core city", "Population": "887,752", - "Metro Population": "2,111,040", - "Parking Score": "61", + "urbanizedAreaPopulation": "1,699,881", + "Parking Score": "58", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Indianapolis_IN.html" }, @@ -316,18 +316,18 @@ "Percentage": "29%", "cityType": "core city", "Population": "887,752", - "Metro Population": "2,111,040", - "Parking Score": "61", + "urbanizedAreaPopulation": "1,247,374", + "Parking Score": "64", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Jacksonville_FL.html" }, "jersey-city-nj": { "Name": "Jersey City, NJ", "Percentage": "20%", - "cityType": "satellite city", + "cityType": "principal", "Population": "292,449", - "Metro Population": "20,140,470", - "Parking Score": "34", + "urbanizedAreaPopulation": "19,426,449", + "Parking Score": "49", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/JerseyCity_NJ.html" }, @@ -336,8 +336,8 @@ "Percentage": "29%", "cityType": "core city", "Population": "507,969", - "Metro Population": "2,192,035", - "Parking Score": "76", + "urbanizedAreaPopulation": "1,674,218", + "Parking Score": "70", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/KansasCity_MO.html" }, @@ -346,7 +346,7 @@ "Percentage": "32%", "cityType": "core city", "Population": "641,825", - "Metro Population": "2,265,461", + "urbanizedAreaPopulation": "2,196,623", "Parking Score": "83", "Reforms": "no reforms" }, @@ -355,7 +355,7 @@ "Percentage": "38%", "cityType": "core city", "Population": "322,570", - "Metro Population": "516,811", + "urbanizedAreaPopulation": "315,631", "Parking Score": "N/A", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Lexington_KY.html" @@ -365,17 +365,17 @@ "Percentage": "23%", "cityType": "core city", "Population": "291,082", - "Metro Population": "340,217", + "urbanizedAreaPopulation": "291,217", "Parking Score": "N/A", "Reforms": "no reforms" }, "long-beach-ca": { "Name": "Long Beach, CA", "Percentage": "18%", - "cityType": "satellite city", + "cityType": "principal", "Population": "466,302", - "Metro Population": "13,200,998", - "Parking Score": "18", + "urbanizedAreaPopulation": "12,237,376", + "Parking Score": "33", "Reforms": "no reforms" }, "los-angeles-ca": { @@ -383,8 +383,8 @@ "Percentage": "12%", "cityType": "core city", "Population": "3,893,986", - "Metro Population": "13,200,998", - "Parking Score": "41", + "urbanizedAreaPopulation": "12,237,376", + "Parking Score": "47", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/LosAngeles_CA.html" }, @@ -393,8 +393,8 @@ "Percentage": "28%", "cityType": "core city", "Population": "632,689", - "Metro Population": "1,395,634", - "Parking Score": "59", + "urbanizedAreaPopulation": "974,397", + "Parking Score": "64", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Louisville_KY.html" }, @@ -403,17 +403,17 @@ "Percentage": "25%", "cityType": "core city", "Population": "633,104", - "Metro Population": "1,337,779", + "urbanizedAreaPopulation": "1,056,190", "Parking Score": "48", "Reforms": "no reforms" }, "mesa-az": { "Name": "Mesa, AZ", "Percentage": "32%", - "cityType": "satellite city", + "cityType": "suburb", "Population": "504,500", - "Metro Population": "4,845,832", - "Parking Score": "58", + "urbanizedAreaPopulation": "3,976,313", + "Parking Score": "N/A", "Reforms": "no reforms" }, "miami-fl": { @@ -421,8 +421,8 @@ "Percentage": "18%", "cityType": "core city", "Population": "442,265", - "Metro Population": "6,138,333", - "Parking Score": "57", + "urbanizedAreaPopulation": "6,077,522", + "Parking Score": "63", "Reforms": "Repealed", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Miami_FL.html" }, @@ -431,18 +431,18 @@ "Percentage": "18%", "cityType": "core city", "Population": "577,222", - "Metro Population": "1,574,731", - "Parking Score": "28", + "urbanizedAreaPopulation": "1,306,795", + "Parking Score": "32", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Milwaukee_WI.html" }, "minneapolis-mn": { "Name": "Minneapolis, MN", "Percentage": "17%", - "cityType": "twin city", + "cityType": "core city", "Population": "428,403", - "Metro Population": "3,690,261", - "Parking Score": "42", + "urbanizedAreaPopulation": "2,914,866", + "Parking Score": "47", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Minneapolis_MN.html" }, @@ -451,18 +451,18 @@ "Percentage": "19%", "cityType": "core city", "Population": "689,504", - "Metro Population": "1,989,519", - "Parking Score": "47", + "urbanizedAreaPopulation": "1,158,642", + "Parking Score": "37", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Nashville_TN.html" }, "new-haven-ct": { "Name": "New Haven, CT", "Percentage": "19%", - "cityType": "core city", + "cityType": "principal", "Population": "134,023", - "Metro Population": "1,020,915", - "Parking Score": "30", + "urbanizedAreaPopulation": "561,456", + "Parking Score": "34", "Reforms": "no reforms" }, "new-orleans-la": { @@ -470,8 +470,8 @@ "Percentage": "19%", "cityType": "core city", "Population": "383,997", - "Metro Population": "1,271,845", - "Parking Score": "30", + "urbanizedAreaPopulation": "963,212", + "Parking Score": "36", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/NewOrleans_LA.html" }, @@ -480,18 +480,18 @@ "Percentage": "1%", "cityType": "core city", "Population": "8,804,190", - "Metro Population": "20,140,470", - "Parking Score": "5", + "urbanizedAreaPopulation": "19,426,449", + "Parking Score": "7", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/NewYorkCIty_NY.html" }, "newark-nj": { "Name": "Newark, NJ", "Percentage": "26%", - "cityType": "satellite city", + "cityType": "principal", "Population": "311,549", - "Metro Population": "20,140,470", - "Parking Score": "41", + "urbanizedAreaPopulation": "19,426,449", + "Parking Score": "55", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Newark_NJ.html" }, @@ -500,18 +500,18 @@ "Percentage": "23%", "cityType": "core city", "Population": "238,005", - "Metro Population": "1,799,675", - "Parking Score": "43", + "urbanizedAreaPopulation": "1,451,578", + "Parking Score": "47", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Norfolk_VA.html" }, "oakland-ca": { "Name": "Oakland, CA", "Percentage": "12%", - "cityType": "twin city", + "cityType": "principal", "Population": "439,349", - "Metro Population": "4,749,008", - "Parking Score": "33", + "urbanizedAreaPopulation": "3,515,933", + "Parking Score": "15", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Oakland_CA.html" }, @@ -520,8 +520,8 @@ "Percentage": "28%", "cityType": "core city", "Population": "681,054", - "Metro Population": "1,425,695", - "Parking Score": "59", + "urbanizedAreaPopulation": "982,276", + "Parking Score": "61", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/OklahomaCity_OK.html" }, @@ -530,7 +530,7 @@ "Percentage": "21%", "cityType": "core city", "Population": "486,051", - "Metro Population": "967,604", + "urbanizedAreaPopulation": "819,508", "Parking Score": "36", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Omaha_NE.html" @@ -540,7 +540,7 @@ "Percentage": "29%", "cityType": "core city", "Population": "307,573", - "Metro Population": "2,673,376", + "urbanizedAreaPopulation": "1,853,896", "Parking Score": "76", "Reforms": "no reforms" }, @@ -549,8 +549,8 @@ "Percentage": "13%", "cityType": "core city", "Population": "1,603,797", - "Metro Population": "6,245,051", - "Parking Score": "40", + "urbanizedAreaPopulation": "5,696,125", + "Parking Score": "37", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Philadelphia_PA.html" }, @@ -559,8 +559,8 @@ "Percentage": "21%", "cityType": "core city", "Population": "1,607,739", - "Metro Population": "4,845,832", - "Parking Score": "59", + "urbanizedAreaPopulation": "3,976,313", + "Parking Score": "67", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Phoenix_AZ.html" }, @@ -569,8 +569,8 @@ "Percentage": "15%", "cityType": "core city", "Population": "302,971", - "Metro Population": "2,370,930", - "Parking Score": "33", + "urbanizedAreaPopulation": "1,745,039", + "Parking Score": "29", "Reforms": "no reforms" }, "portland-or": { @@ -578,18 +578,18 @@ "Percentage": "11%", "cityType": "core city", "Population": "652,089", - "Metro Population": "2,512,859", - "Parking Score": "22", + "urbanizedAreaPopulation": "2,104,238", + "Parking Score": "24", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Portland_OR.html" }, "providence-ri": { "Name": "Providence, RI", "Percentage": "24%", - "cityType": "core city", + "cityType": "principal", "Population": "190,934", - "Metro Population": "1,676,579", - "Parking Score": "46", + "urbanizedAreaPopulation": "1,285,806", + "Parking Score": "50", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Providence_RI.html" }, @@ -598,28 +598,28 @@ "Percentage": "28%", "cityType": "core city", "Population": "467,665", - "Metro Population": "1,413,982", - "Parking Score": "58", + "urbanizedAreaPopulation": "1,106,646", + "Parking Score": "61", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Raleigh_NC.html" }, "richmond-va": { "Name": "Richmond, VA", "Percentage": "21%", - "cityType": "Core City", + "cityType": "core city", "Population": "226,610", - "Metro Population": "1,314,434", - "Parking Score": "37", + "urbanizedAreaPopulation": "1,059,150", + "Parking Score": "39", "Reforms": "Passed", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Richmond_VA.html" }, "riverside-ca": { "Name": "Riverside, CA", "Percentage": "34%", - "cityType": "node city", + "cityType": "principal", "Population": "317,610", - "Metro Population": "4,599,839", - "Parking Score": "99", + "urbanizedAreaPopulation": "2,276,703", + "Parking Score": "81", "Reforms": "no reforms" }, "rochester-ny": { @@ -627,8 +627,8 @@ "Percentage": "28%", "cityType": "core city", "Population": "211,328", - "Metro Population": "1,090,135", - "Parking Score": "59", + "urbanizedAreaPopulation": "704,327", + "Parking Score": "52", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Rochester_NY.html" }, @@ -637,8 +637,8 @@ "Percentage": "17%", "cityType": "core city", "Population": "522,754", - "Metro Population": "2,397,382", - "Parking Score": "38", + "urbanizedAreaPopulation": "1,946,618", + "Parking Score": "41", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Sacramento_CA.html" }, @@ -647,18 +647,18 @@ "Percentage": "21%", "cityType": "core city", "Population": "301,578", - "Metro Population": "2,820,253", - "Parking Score": "51", + "urbanizedAreaPopulation": "2,156,323", + "Parking Score": "53", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/St.Louis_MO.html" }, "saint-paul-mn": { "Name": "Saint Paul, MN", "Percentage": "16%", - "cityType": "twin city", + "cityType": "principal", "Population": "311,527", - "Metro Population": "3,690,261", - "Parking Score": "38", + "urbanizedAreaPopulation": "2,914,866", + "Parking Score": "26", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/St.Paul_MN.html" }, @@ -667,8 +667,8 @@ "Percentage": "29%", "cityType": "core city", "Population": "199,723", - "Metro Population": "1,257,936", - "Parking Score": "61", + "urbanizedAreaPopulation": "1,178,533", + "Parking Score": "65", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/SaltLakeCity_UT.html" }, @@ -677,17 +677,17 @@ "Percentage": "28%", "cityType": "core city", "Population": "1,434,270", - "Metro Population": "2,558,143", - "Parking Score": "72", + "urbanizedAreaPopulation": "1,992,689", + "Parking Score": "78", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/SanAntonio_TX.html" }, "san-bernardino-ca": { "Name": "San Bernardino, CA", "Percentage": "49%", - "cityType": "node city", + "cityType": "principal", "Population": "221,101", - "Metro Population": "4,599,839", + "urbanizedAreaPopulation": "2,276,703", "Parking Score": "100", "Reforms": "no reforms" }, @@ -696,28 +696,28 @@ "Percentage": "14%", "cityType": "core city", "Population": "1,385,922", - "Metro Population": "3,298,634", - "Parking Score": "32", + "urbanizedAreaPopulation": "3,070,300", + "Parking Score": "40", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/SanDiego_CA.html" }, "san-francisco-ca": { "Name": "San Francisco, CA", "Percentage": "4%", - "cityType": "twin city", + "cityType": "core city", "Population": "873,965", - "Metro Population": "4,749,008", - "Parking Score": "8", + "urbanizedAreaPopulation": "3,515,933", + "Parking Score": "12", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/SanFrancisco_CA.html" }, "san-jose-ca": { "Name": "San Jose, CA", "Percentage": "14%", - "cityType": "core city", + "cityType": "principal", "Population": "1,014,545", - "Metro Population": "2,000,468", - "Parking Score": "31", + "urbanizedAreaPopulation": "1,837,446", + "Parking Score": "20", "Reforms": "passed", "Website URL": "https://parkingreform.org/mandates-map/city_detail/SanJose_CA.html" }, @@ -726,17 +726,17 @@ "Percentage": "7%", "cityType": "core city", "Population": "342,259", - "Metro Population": "2,081,265", - "Parking Score": "11", + "urbanizedAreaPopulation": "1,844,410", + "Parking Score": "13", "Reforms": "no reforms" }, "santa-ana-ca": { "Name": "Santa Ana, CA", "Percentage": "22%", - "cityType": "node city", + "cityType": "principal", "Population": "310,227", - "Metro Population": "3,186,989", - "Parking Score": "57", + "urbanizedAreaPopulation": "12,237,376", + "Parking Score": "45", "Reforms": "no reforms" }, "santa-barbara-ca": { @@ -744,7 +744,7 @@ "Percentage": "27%", "cityType": "node city", "Population": "88,665", - "Metro Population": "446,475", + "urbanizedAreaPopulation": "446,475", "Parking Score": "N/A", "Reforms": "No Reforms" }, @@ -753,37 +753,37 @@ "Percentage": "10%", "cityType": "core city", "Population": "735,157", - "Metro Population": "4,018,762", - "Parking Score": "27", + "urbanizedAreaPopulation": "3,544,011", + "Parking Score": "34", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Seattle_WA.html" }, "st.-petersburg-fl": { "Name": "St. Petersburg, FL", "Percentage": "24%", - "cityType": "twin city", + "cityType": "principal", "Population": "258,308", - "Metro Population": "3,175,275", - "Parking Score": "63", + "urbanizedAreaPopulation": "2,783,045", + "Parking Score": "51", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/St.Petersburg_FL.html" }, "stockton-ca": { "Name": "Stockton, CA", "Percentage": "23%", - "cityType": "core city", + "cityType": "principal", "Population": "320,804", - "Metro Population": "779,233", + "urbanizedAreaPopulation": "414,847", "Parking Score": "N/A", "Reforms": "no reforms" }, "tampa-fl": { "Name": "Tampa, FL", "Percentage": "30%", - "cityType": "twin city", + "cityType": "core city", "Population": "382,769", - "Metro Population": "3,175,275", - "Parking Score": "80", + "urbanizedAreaPopulation": "2,783,045", + "Parking Score": "87", "Reforms": "no reforms" }, "tucson-az": { @@ -791,8 +791,8 @@ "Percentage": "23%", "cityType": "core city", "Population": "542,629", - "Metro Population": "1,043,433", - "Parking Score": "42", + "urbanizedAreaPopulation": "875,441", + "Parking Score": "45", "Reforms": "'no reforms" }, "tulsa-ok": { @@ -800,18 +800,18 @@ "Percentage": "29%", "cityType": "core city", "Population": "413,066", - "Metro Population": "1,015,331", - "Parking Score": "61", + "urbanizedAreaPopulation": "722,810", + "Parking Score": "60", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Tulsa_OK.html" }, "virginia-beach-va": { "Name": "Virginia Beach, VA", "Percentage": "35%", - "cityType": "satellite city", + "cityType": "suburb", "Population": "459,470", - "Metro Population": "1,799,674", - "Parking Score": "69", + "urbanizedAreaPopulation": "2,196,623", + "Parking Score": "N/A", "Reforms": "no reforms" }, "washington-dc": { @@ -819,8 +819,8 @@ "Percentage": "3%", "cityType": "core city", "Population": "689,545", - "Metro Population": "6,385,162", - "Parking Score": "12", + "urbanizedAreaPopulation": "5,174,759", + "Parking Score": "10", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/WashingtonDC_DC.html" }, @@ -829,18 +829,18 @@ "Percentage": "35%", "cityType": "core city", "Population": "397,532", - "Metro Population": "647,610", - "Parking Score": "N/A", + "urbanizedAreaPopulation": "500,231", + "Parking Score": "73", "Reforms": "implemented", "Website URL": "https://parkingreform.org/mandates-map/city_detail/Wichita_KS.html" }, "worcester-ma": { "Name": "Worcester, MA", "Percentage": "35%", - "cityType": "core city", + "cityType": "principal", "Population": "206,518", - "Metro Population": "978,529", - "Parking Score": "78", + "urbanizedAreaPopulation": "482,085", + "Parking Score": "N/A", "Reforms": "no reforms" } } diff --git a/src/js/setUpSite.js b/src/js/setUpSite.js index 515a454..42b4d31 100644 --- a/src/js/setUpSite.js +++ b/src/js/setUpSite.js @@ -132,7 +132,7 @@ const generateScorecard = (scoreCardEntry) => { cityType, Percentage, Population, - "Metro Population": MetroPopulation, + urbanizedAreaPopulation, "Parking Score": ParkingScore, Reforms, "Website URL": WebsiteURL, @@ -147,7 +147,7 @@ const generateScorecard = (scoreCardEntry) => {
City type: ${cityType}
Population: ${Population}
-
Metro population: ${MetroPopulation}
+
Urbanized area population: ${urbanizedAreaPopulation}
`; if (WebsiteURL) { result += ` diff --git a/updatePop.py b/updatePop.py new file mode 100644 index 0000000..9e8ce06 --- /dev/null +++ b/updatePop.py @@ -0,0 +1,23 @@ +import csv +import json +from pathlib import Path + +CSV = Path("update-pop.csv") +SCORE_CARDS_FP = Path("data/score-cards.json") + +def main() -> None: + with CSV.open(newline="") as f: + reader = csv.DictReader(f) + rows = list(reader) + score_cards = json.loads(SCORE_CARDS_FP.read_text()) + for city_id, score_card in score_cards.items(): + row = next((row for row in rows if row["City"] == city_id), None) + if row is None: + continue + score_card["Parking Score"] = row["PS"] + score_card["Metro Population"] = row["Pop"] + score_card["cityType"] = row["City Type"].lower() + SCORE_CARDS_FP.write_text(json.dumps(score_cards)) + + +main() \ No newline at end of file