-
-
Save timelyportfolio/5c6ebd94cee53f69cc159811a8029f19 to your computer and use it in GitHub Desktop.
State FIPS JSON
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"01": "Alabama", | |
"02": "Alaska", | |
"04": "Arizona", | |
"05": "Arkansas", | |
"06": "California", | |
"08": "Colorado", | |
"09": "Connecticut", | |
"10": "Delaware", | |
"11": "District of Columbia", | |
"12": "Florida", | |
"13": "Geogia", | |
"15": "Hawaii", | |
"16": "Idaho", | |
"17": "Illinois", | |
"18": "Indiana", | |
"19": "Iowa", | |
"20": "Kansas", | |
"21": "Kentucky", | |
"22": "Louisiana", | |
"23": "Maine", | |
"24": "Maryland", | |
"25": "Massachusetts", | |
"26": "Michigan", | |
"27": "Minnesota", | |
"28": "Mississippi", | |
"29": "Missouri", | |
"30": "Montana", | |
"31": "Nebraska", | |
"32": "Nevada", | |
"33": "New Hampshire", | |
"34": "New Jersey", | |
"35": "New Mexico", | |
"36": "New York", | |
"37": "North Carolina", | |
"38": "North Dakota", | |
"39": "Ohio", | |
"40": "Oklahoma", | |
"41": "Oregon", | |
"42": "Pennsylvania", | |
"44": "Rhode Island", | |
"45": "South Carolina", | |
"46": "South Dakota", | |
"47": "Tennessee", | |
"48": "Texas", | |
"49": "Utah", | |
"50": "Vermont", | |
"51": "Virginia", | |
"53": "Washington", | |
"54": "West Virginia", | |
"55": "Wisconsin", | |
"56": "Wyoming" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"02": "AK", | |
"01": "AL", | |
"05": "AR", | |
"60": "AS", | |
"04": "AZ", | |
"06": "CA", | |
"08": "CO", | |
"09": "CT", | |
"11": "DC", | |
"10": "DE", | |
"12": "FL", | |
"13": "GA", | |
"66": "GU", | |
"15": "HI", | |
"19": "IA", | |
"16": "ID", | |
"17": "IL", | |
"18": "IN", | |
"20": "KS", | |
"21": "KY", | |
"22": "LA", | |
"25": "MA", | |
"24": "MD", | |
"23": "ME", | |
"26": "MI", | |
"27": "MN", | |
"29": "MO", | |
"28": "MS", | |
"30": "MT", | |
"37": "NC", | |
"38": "ND", | |
"31": "NE", | |
"33": "NH", | |
"34": "NJ", | |
"35": "NM", | |
"32": "NV", | |
"36": "NY", | |
"39": "OH", | |
"40": "OK", | |
"41": "OR", | |
"42": "PA", | |
"72": "PR", | |
"44": "RI", | |
"45": "SC", | |
"46": "SD", | |
"47": "TN", | |
"48": "TX", | |
"49": "UT", | |
"51": "VA", | |
"78": "VI", | |
"50": "VT", | |
"53": "WA", | |
"55": "WI", | |
"54": "WV", | |
"56": "WY" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src = "https://unpkg.com/d3"></script> | |
<div id="printout"></div> | |
<script> | |
d3.json("stateCodeToFips.json", function(e, data) { | |
var states = d3.keys(data) | |
var ids = d3.values(data) | |
var lookup = states.map(function(d,i) { | |
return { | |
name: d, | |
id: +ids[i] | |
} | |
}) | |
d3.select("#printout").text(JSON.stringify(lookup)) | |
}) | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AK": "02", | |
"AL": "01", | |
"AR": "05", | |
"AS": "60", | |
"AZ": "04", | |
"CA": "06", | |
"CO": "08", | |
"CT": "09", | |
"DC": "11", | |
"DE": "10", | |
"FL": "12", | |
"GA": "13", | |
"GU": "66", | |
"HI": "15", | |
"IA": "19", | |
"ID": "16", | |
"IL": "17", | |
"IN": "18", | |
"KS": "20", | |
"KY": "21", | |
"LA": "22", | |
"MA": "25", | |
"MD": "24", | |
"ME": "23", | |
"MI": "26", | |
"MN": "27", | |
"MO": "29", | |
"MS": "28", | |
"MT": "30", | |
"NC": "37", | |
"ND": "38", | |
"NE": "31", | |
"NH": "33", | |
"NJ": "34", | |
"NM": "35", | |
"NV": "32", | |
"NY": "36", | |
"OH": "39", | |
"OK": "40", | |
"OR": "41", | |
"PA": "42", | |
"PR": "72", | |
"RI": "44", | |
"SC": "45", | |
"SD": "46", | |
"TN": "47", | |
"TX": "48", | |
"UT": "49", | |
"VA": "51", | |
"VI": "78", | |
"VT": "50", | |
"WA": "53", | |
"WI": "55", | |
"WV": "54", | |
"WY": "56" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"name":"AK","id":2},{"name":"AL","id":1},{"name":"AR","id":5},{"name":"AS","id":60},{"name":"AZ","id":4},{"name":"CA","id":6},{"name":"CO","id":8},{"name":"CT","id":9},{"name":"DC","id":11},{"name":"DE","id":10},{"name":"FL","id":12},{"name":"GA","id":13},{"name":"GU","id":66},{"name":"HI","id":15},{"name":"IA","id":19},{"name":"ID","id":16},{"name":"IL","id":17},{"name":"IN","id":18},{"name":"KS","id":20},{"name":"KY","id":21},{"name":"LA","id":22},{"name":"MA","id":25},{"name":"MD","id":24},{"name":"ME","id":23},{"name":"MI","id":26},{"name":"MN","id":27},{"name":"MO","id":29},{"name":"MS","id":28},{"name":"MT","id":30},{"name":"NC","id":37},{"name":"ND","id":38},{"name":"NE","id":31},{"name":"NH","id":33},{"name":"NJ","id":34},{"name":"NM","id":35},{"name":"NV","id":32},{"name":"NY","id":36},{"name":"OH","id":39},{"name":"OK","id":40},{"name":"OR","id":41},{"name":"PA","id":42},{"name":"PR","id":72},{"name":"RI","id":44},{"name":"SC","id":45},{"name":"SD","id":46},{"name":"TN","id":47},{"name":"TX","id":48},{"name":"UT","id":49},{"name":"VA","id":51},{"name":"VI","id":78},{"name":"VT","id":50},{"name":"WA","id":53},{"name":"WI","id":55},{"name":"WV","id":54},{"name":"WY","id":56}] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Alabama" : "01", | |
"Alaska" : "02", | |
"Arizona" : "04", | |
"Arkansas" : "05", | |
"California" : "06", | |
"Colorado" : "08", | |
"Connecticut" : "09", | |
"Delaware" : "10", | |
"District of Columbia" : "11", | |
"Florida" : "12", | |
"Geogia" : "13", | |
"Hawaii" : "15", | |
"Idaho" : "16", | |
"Illinois" : "17", | |
"Indiana" : "18", | |
"Iowa" : "19", | |
"Kansas" : "20", | |
"Kentucky" : "21", | |
"Louisiana" : "22", | |
"Maine" : "23", | |
"Maryland" : "24", | |
"Massachusetts" : "25", | |
"Michigan" : "26", | |
"Minnesota" : "27", | |
"Mississippi" : "28", | |
"Missouri" : "29", | |
"Montana" : "30", | |
"Nebraska" : "31", | |
"Nevada" : "32", | |
"New Hampshire" : "33", | |
"New Jersey" : "34", | |
"New Mexico" : "35", | |
"New York" : "36", | |
"North Carolina" : "37", | |
"North Dakota" : "38", | |
"Ohio" : "39", | |
"Oklahoma" : "40", | |
"Oregon" : "41", | |
"Pennsylvania" : "42", | |
"Rhode Island" : "44", | |
"South Carolina" : "45", | |
"South Dakota" : "46", | |
"Tennessee" : "47", | |
"Texas" : "48", | |
"Utah" : "49", | |
"Vermont" : "50", | |
"Virginia" : "51", | |
"Washington" : "53", | |
"West Virginia" : "54", | |
"Wisconsin" : "55", | |
"Wyoming" : "56" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment