{ | |
"AL": "Alabama", | |
"AK": "Alaska", | |
"AS": "American Samoa", | |
"AZ": "Arizona", | |
"AR": "Arkansas", | |
"CA": "California", | |
"CO": "Colorado", | |
"CT": "Connecticut", | |
"DE": "Delaware", | |
"DC": "District Of Columbia", | |
"FM": "Federated States Of Micronesia", | |
"FL": "Florida", | |
"GA": "Georgia", | |
"GU": "Guam", | |
"HI": "Hawaii", | |
"ID": "Idaho", | |
"IL": "Illinois", | |
"IN": "Indiana", | |
"IA": "Iowa", | |
"KS": "Kansas", | |
"KY": "Kentucky", | |
"LA": "Louisiana", | |
"ME": "Maine", | |
"MH": "Marshall Islands", | |
"MD": "Maryland", | |
"MA": "Massachusetts", | |
"MI": "Michigan", | |
"MN": "Minnesota", | |
"MS": "Mississippi", | |
"MO": "Missouri", | |
"MT": "Montana", | |
"NE": "Nebraska", | |
"NV": "Nevada", | |
"NH": "New Hampshire", | |
"NJ": "New Jersey", | |
"NM": "New Mexico", | |
"NY": "New York", | |
"NC": "North Carolina", | |
"ND": "North Dakota", | |
"MP": "Northern Mariana Islands", | |
"OH": "Ohio", | |
"OK": "Oklahoma", | |
"OR": "Oregon", | |
"PW": "Palau", | |
"PA": "Pennsylvania", | |
"PR": "Puerto Rico", | |
"RI": "Rhode Island", | |
"SC": "South Carolina", | |
"SD": "South Dakota", | |
"TN": "Tennessee", | |
"TX": "Texas", | |
"UT": "Utah", | |
"VT": "Vermont", | |
"VI": "Virgin Islands", | |
"VA": "Virginia", | |
"WA": "Washington", | |
"WV": "West Virginia", | |
"WI": "Wisconsin", | |
"WY": "Wyoming" | |
} |
[ | |
{ | |
"name": "Alabama", | |
"abbreviation": "AL" | |
}, | |
{ | |
"name": "Alaska", | |
"abbreviation": "AK" | |
}, | |
{ | |
"name": "American Samoa", | |
"abbreviation": "AS" | |
}, | |
{ | |
"name": "Arizona", | |
"abbreviation": "AZ" | |
}, | |
{ | |
"name": "Arkansas", | |
"abbreviation": "AR" | |
}, | |
{ | |
"name": "California", | |
"abbreviation": "CA" | |
}, | |
{ | |
"name": "Colorado", | |
"abbreviation": "CO" | |
}, | |
{ | |
"name": "Connecticut", | |
"abbreviation": "CT" | |
}, | |
{ | |
"name": "Delaware", | |
"abbreviation": "DE" | |
}, | |
{ | |
"name": "District Of Columbia", | |
"abbreviation": "DC" | |
}, | |
{ | |
"name": "Federated States Of Micronesia", | |
"abbreviation": "FM" | |
}, | |
{ | |
"name": "Florida", | |
"abbreviation": "FL" | |
}, | |
{ | |
"name": "Georgia", | |
"abbreviation": "GA" | |
}, | |
{ | |
"name": "Guam", | |
"abbreviation": "GU" | |
}, | |
{ | |
"name": "Hawaii", | |
"abbreviation": "HI" | |
}, | |
{ | |
"name": "Idaho", | |
"abbreviation": "ID" | |
}, | |
{ | |
"name": "Illinois", | |
"abbreviation": "IL" | |
}, | |
{ | |
"name": "Indiana", | |
"abbreviation": "IN" | |
}, | |
{ | |
"name": "Iowa", | |
"abbreviation": "IA" | |
}, | |
{ | |
"name": "Kansas", | |
"abbreviation": "KS" | |
}, | |
{ | |
"name": "Kentucky", | |
"abbreviation": "KY" | |
}, | |
{ | |
"name": "Louisiana", | |
"abbreviation": "LA" | |
}, | |
{ | |
"name": "Maine", | |
"abbreviation": "ME" | |
}, | |
{ | |
"name": "Marshall Islands", | |
"abbreviation": "MH" | |
}, | |
{ | |
"name": "Maryland", | |
"abbreviation": "MD" | |
}, | |
{ | |
"name": "Massachusetts", | |
"abbreviation": "MA" | |
}, | |
{ | |
"name": "Michigan", | |
"abbreviation": "MI" | |
}, | |
{ | |
"name": "Minnesota", | |
"abbreviation": "MN" | |
}, | |
{ | |
"name": "Mississippi", | |
"abbreviation": "MS" | |
}, | |
{ | |
"name": "Missouri", | |
"abbreviation": "MO" | |
}, | |
{ | |
"name": "Montana", | |
"abbreviation": "MT" | |
}, | |
{ | |
"name": "Nebraska", | |
"abbreviation": "NE" | |
}, | |
{ | |
"name": "Nevada", | |
"abbreviation": "NV" | |
}, | |
{ | |
"name": "New Hampshire", | |
"abbreviation": "NH" | |
}, | |
{ | |
"name": "New Jersey", | |
"abbreviation": "NJ" | |
}, | |
{ | |
"name": "New Mexico", | |
"abbreviation": "NM" | |
}, | |
{ | |
"name": "New York", | |
"abbreviation": "NY" | |
}, | |
{ | |
"name": "North Carolina", | |
"abbreviation": "NC" | |
}, | |
{ | |
"name": "North Dakota", | |
"abbreviation": "ND" | |
}, | |
{ | |
"name": "Northern Mariana Islands", | |
"abbreviation": "MP" | |
}, | |
{ | |
"name": "Ohio", | |
"abbreviation": "OH" | |
}, | |
{ | |
"name": "Oklahoma", | |
"abbreviation": "OK" | |
}, | |
{ | |
"name": "Oregon", | |
"abbreviation": "OR" | |
}, | |
{ | |
"name": "Palau", | |
"abbreviation": "PW" | |
}, | |
{ | |
"name": "Pennsylvania", | |
"abbreviation": "PA" | |
}, | |
{ | |
"name": "Puerto Rico", | |
"abbreviation": "PR" | |
}, | |
{ | |
"name": "Rhode Island", | |
"abbreviation": "RI" | |
}, | |
{ | |
"name": "South Carolina", | |
"abbreviation": "SC" | |
}, | |
{ | |
"name": "South Dakota", | |
"abbreviation": "SD" | |
}, | |
{ | |
"name": "Tennessee", | |
"abbreviation": "TN" | |
}, | |
{ | |
"name": "Texas", | |
"abbreviation": "TX" | |
}, | |
{ | |
"name": "Utah", | |
"abbreviation": "UT" | |
}, | |
{ | |
"name": "Vermont", | |
"abbreviation": "VT" | |
}, | |
{ | |
"name": "Virgin Islands", | |
"abbreviation": "VI" | |
}, | |
{ | |
"name": "Virginia", | |
"abbreviation": "VA" | |
}, | |
{ | |
"name": "Washington", | |
"abbreviation": "WA" | |
}, | |
{ | |
"name": "West Virginia", | |
"abbreviation": "WV" | |
}, | |
{ | |
"name": "Wisconsin", | |
"abbreviation": "WI" | |
}, | |
{ | |
"name": "Wyoming", | |
"abbreviation": "WY" | |
} | |
] |
This comment has been minimized.
This comment has been minimized.
THANK YOU SO MUCH! |
This comment has been minimized.
This comment has been minimized.
Thanks, this is great!! |
This comment has been minimized.
This comment has been minimized.
Thanks! |
This comment has been minimized.
This comment has been minimized.
Thanks! |
This comment has been minimized.
This comment has been minimized.
Much appreciated |
This comment has been minimized.
This comment has been minimized.
just what I was looking for |
This comment has been minimized.
This comment has been minimized.
Thank you :) |
This comment has been minimized.
This comment has been minimized.
Thank you :), Incase some one who uses jslint. Here is the json_hash in single quotes
There is an underscore method to
|
This comment has been minimized.
This comment has been minimized.
like this! |
This comment has been minimized.
This comment has been minimized.
Lovely !! Thanks a ton! |
This comment has been minimized.
This comment has been minimized.
fantastic! |
This comment has been minimized.
This comment has been minimized.
Awesome =) |
This comment has been minimized.
This comment has been minimized.
Thanks a lot !!! |
This comment has been minimized.
This comment has been minimized.
Thanks! |
This comment has been minimized.
This comment has been minimized.
This is awesome! You helped with starting a similar project, which has all states along with a beautiful photo of each state. Heres my repo if anybody is interested in using or forking it: |
This comment has been minimized.
This comment has been minimized.
PLUS ONE Super helpful. Thanks for posting this :) |
This comment has been minimized.
This comment has been minimized.
Awesome, just what I needed :). |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
great one guys! |
This comment has been minimized.
This comment has been minimized.
Thanks! |
This comment has been minimized.
This comment has been minimized.
Nice |
This comment has been minimized.
This comment has been minimized.
Many thanks!!! |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
Thanks! |
This comment has been minimized.
This comment has been minimized.
Just what i've been looking for! thanks a lot! |
This comment has been minimized.
This comment has been minimized.
Thanks for this, very useful! |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
Thank you! This is very handy! Here's a compact version:
|
This comment has been minimized.
This comment has been minimized.
oh my god thank you so much |
This comment has been minimized.
This comment has been minimized.
These lists are incredibly useful, thank you so much |
This comment has been minimized.
This comment has been minimized.
Thanks! |
This comment has been minimized.
This comment has been minimized.
Thank you! Very useful. |
This comment has been minimized.
This comment has been minimized.
Very useful |
This comment has been minimized.
This comment has been minimized.
Thanks! |
This comment has been minimized.
This comment has been minimized.
Noice! Here at work, not all of our sites are connected to a DB. Just wrote a little class to make a state dropdown, this helped a lot. Thanks! |
This comment has been minimized.
This comment has been minimized.
Appreciate it! |
This comment has been minimized.
This comment has been minimized.
Great! |
This comment has been minimized.
This comment has been minimized.
google "usa states json" -> arrive here -> copy/paste -> [fist bump] good work, and thanks! |
This comment has been minimized.
This comment has been minimized.
thanks! |
This comment has been minimized.
This comment has been minimized.
Thanks |
This comment has been minimized.
This comment has been minimized.
Thanks! Save us a lot of time. |
This comment has been minimized.
This comment has been minimized.
thanks |
This comment has been minimized.
This comment has been minimized.
Thanks so much!! |
This comment has been minimized.
This comment has been minimized.
Thank you! |
This comment has been minimized.
This comment has been minimized.
Thanks!!! |
This comment has been minimized.
This comment has been minimized.
aren't there 50 states in the us? how come you have 59? |
This comment has been minimized.
This comment has been minimized.
In case anyone needs the opposite: { |
This comment has been minimized.
This comment has been minimized.
Thank you! |
This comment has been minimized.
This comment has been minimized.
If anybody needs lower case, compact, json with only states (no territories), here you go:
|
This comment has been minimized.
This comment has been minimized.
Thanks for providing the list! |
This comment has been minimized.
This comment has been minimized.
+1 |
This comment has been minimized.
This comment has been minimized.
Thanks a million!! |
This comment has been minimized.
This comment has been minimized.
Thank you very much! Very helpful! |
This comment has been minimized.
This comment has been minimized.
Thanks for making this. You are a righteous dude. |
This comment has been minimized.
This comment has been minimized.
Thanks!!!!! |
This comment has been minimized.
This comment has been minimized.
Not all heroes wear capes. |
This comment has been minimized.
This comment has been minimized.
thanks! |
This comment has been minimized.
This comment has been minimized.
Thanks a lot! |
This comment has been minimized.
This comment has been minimized.
Thank you :) |
This comment has been minimized.
This comment has been minimized.
Awesome! |
This comment has been minimized.
This comment has been minimized.
Thanks a lot for publishing this list! |
This comment has been minimized.
This comment has been minimized.
Dude! |
This comment has been minimized.
This comment has been minimized.
If you only need the abbreviations
|
This comment has been minimized.
This comment has been minimized.
Nice! |
This comment has been minimized.
This comment has been minimized.
@rnagella thank you! |
This comment has been minimized.
This comment has been minimized.
Thank You! |
This comment has been minimized.
This comment has been minimized.
Wiki says there are 50 states, how come there's 59? Very useful though, thanks |
This comment has been minimized.
This comment has been minimized.
EXACTLY what I needed. Simple, elegant solutions are the most beautiful things. Always. Thanks for this. |
This comment has been minimized.
This comment has been minimized.
59 states...? Which of these aren't states? |
This comment has been minimized.
This comment has been minimized.
It seems as of today there are fifty states, DC, and eight insular areas:
This explains the fifty nine entries in the JSON. Sources: https://en.wikipedia.org/wiki/List_of_U.S._state_abbreviations#Table |
This comment has been minimized.
This comment has been minimized.
Thanks for this! |
This comment has been minimized.
This comment has been minimized.
Thank you very much! This is awesome |
This comment has been minimized.
This comment has been minimized.
THIS IS PERFECT THANK YOU! |
This comment has been minimized.
This comment has been minimized.
I'll go too. In case you only want array of names, like I did.
|
This comment has been minimized.
This comment has been minimized.
Very helpful, A+ |
This comment has been minimized.
This comment has been minimized.
In case you need array of states with id, like I did. |
This comment has been minimized.
This comment has been minimized.
Thanks! |
This comment has been minimized.
This comment has been minimized.
Super awesome!! |
This comment has been minimized.
This comment has been minimized.
DOPE |
This comment has been minimized.
This comment has been minimized.
I needed this for Mike Tuupola's Edit Select (in-place) - {'AL' : 'AL', 'AK' : 'AK', 'AS' : 'AS', 'AZ' : 'AZ', 'AR' : 'AR', 'CA' : 'CA', 'CO' : 'CO', 'CT' : 'CT', 'DE' : 'DE', 'DC' : 'DC', 'FM' : 'FM', 'FL' : 'FL', 'GA' : 'GA', 'GU' : 'GU', 'HI' : 'HI', 'ID' : 'ID', 'IL' : 'IL', 'IN' : 'IN', 'IA' : 'IA', 'KS' : 'KS', 'KY' : 'KY', 'LA' : 'LA', 'ME' : 'ME', 'MH' : 'MH', 'MD' : 'MD', 'MA' : 'MA', 'MI' : 'MI', 'MN' : 'MN', 'MS' : 'MS', 'MO' : 'MO', 'MT' : 'MT', 'NE' : 'NE', 'NV' : 'NV', 'NH' : 'NH', 'NJ' : 'NJ', 'NM' : 'NM', 'NY' : 'NY', 'NC' : 'NC', 'ND' : 'ND', 'MP' : 'MP', 'OH' : 'OH', 'OK' : 'OK', 'OR' : 'OR', 'PW' : 'PW', 'PA' : 'PA', 'PR' : 'PR', 'RI' : 'RI', 'SC' : 'SC', 'SD' : 'SD', 'TN' : 'TN', 'TX' : 'TX', 'UT' : 'UT', 'VT' : 'VT', 'VI' : 'VI', 'VA' : 'VA', 'WA' : 'WA', 'WV' : 'WV', 'WI' : 'WI', 'WY' : 'WY'} |
This comment has been minimized.
This comment has been minimized.
In case you need state & city https://gist.github.com/msomu/4f4360b053b1713502cb9e339cdf1928 |
This comment has been minimized.
This comment has been minimized.
I have created US State and City json Here according to this website information |
This comment has been minimized.
This comment has been minimized.
Created a repo with all the counties & cities & zipcodes grouped by state, which you can find at: https://github.com/tataencu/us_cities |
This comment has been minimized.
This comment has been minimized.
Thanks! |
This comment has been minimized.
This comment has been minimized.
Why do these lists contain territories and not only the states, as the title of the gist says ??? It created problems at MY work cause I used the list directly and then we had shipping problems, cause we ship only to the official 50 states!!! Why?? Whyyyyy??? |
This comment has been minimized.
This comment has been minimized.
Thank you for your time in putting this together. |
This comment has been minimized.
This comment has been minimized.
bless u prayer hands emoji |
This comment has been minimized.
This comment has been minimized.
Thanks for saving me time! |
This comment has been minimized.
This comment has been minimized.
Bless your soul for doing this! |
This comment has been minimized.
This comment has been minimized.
Why do these lists contain territories and not only the states, as the title of the gist says ??? |
This comment has been minimized.
This comment has been minimized.
Thanks for sharing! |
This comment has been minimized.
This comment has been minimized.
Baller! |
This comment has been minimized.
This comment has been minimized.
pefect!! |
This comment has been minimized.
This comment has been minimized.
Here the states by id in a javascript object extracted from the Wikipedia [List of U.S. state abbreviations].(https://en.wikipedia.org/wiki/List_of_U.S._state_abbreviations) var states = {"10":"Delaware","11":"District of Columbia","12":"Florida","13":"Georgia","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","60":"American Samoa","64":"Micronesia","66":"Guam","67":"Johnston Atoll","68":"Marshall Islands","69":"Northern Mariana Islands","70":"Palau","71":"Midway Islands","72":"Puerto Rico","74":"U.S. Minor Outlying Islands","76":"Navassa Island","78":"U.S. Virgin Islands","79":"Wake Island","81":"Baker Island","84":"Howland Island","86":"Jarvis Island","89":"Kingman Reef","95":"Palmyra Atoll[4]","01":"Alabama","02":"Alaska","04":"Arizona","05":"Arkansas","06":"California","08":"Colorado","09":"Connecticut"} This way you could access to the name state name this way |
This comment has been minimized.
This comment has been minimized.
Lowercase name => code mapping:
|
This comment has been minimized.
This comment has been minimized.
USA_states: { |
This comment has been minimized.
This comment has been minimized.
Thanks |
This comment has been minimized.
This comment has been minimized.
Thanks @huynp |
This comment has been minimized.
This comment has been minimized.
with Canada. |
This comment has been minimized.
This comment has been minimized.
All the States of US and Canada: lowercase state name -> Upper case state short form in swift static let StatesDictionary: [String : String] = [ |
This comment has been minimized.
This comment has been minimized.
cheers :) |
This comment has been minimized.
This comment has been minimized.
\o/ |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
In collection form
|
This comment has been minimized.
This comment has been minimized.
Thanks all! |
This comment has been minimized.
This comment has been minimized.
States with slugs:
|
This comment has been minimized.
This comment has been minimized.
in case you also need street types. https://gist.github.com/zhisme/718dc44cb2b507949f034c5c958550a4
|
This comment has been minimized.
This comment has been minimized.
50 states [
{
"name": "Alabama",
"abbr": "AL"
},
{
"name": "Alaska",
"abbr": "AK"
},
{
"name": "Arizona ",
"abbr": "AZ"
},
{
"name": "Arkansas",
"abbr": "AR"
},
{
"name": "California ",
"abbr": "CA"
},
{
"name": "Colorado ",
"abbr": "CO"
},
{
"name": "Connecticut",
"abbr": "CT"
},
{
"name": "Delaware",
"abbr": "DE"
},
{
"name": "Florida",
"abbr": "FL"
},
{
"name": "Georgia",
"abbr": "GA"
},
{
"name": "Hawaii",
"abbr": "HI"
},
{
"name": "Idaho",
"abbr": "ID"
},
{
"name": "Illinois",
"abbr": "IL"
},
{
"name": "Indiana",
"abbr": "IN"
},
{
"name": "Iowa",
"abbr": "IA"
},
{
"name": "Kansas",
"abbr": "KS"
},
{
"name": "Kentucky",
"abbr": "KY"
},
{
"name": "Louisiana",
"abbr": "LA"
},
{
"name": "Maine",
"abbr": "ME"
},
{
"name": "Maryland",
"abbr": "MD"
},
{
"name": "Massachusetts",
"abbr": "MA"
},
{
"name": "Michigan",
"abbr": "MI"
},
{
"name": "Minnesota",
"abbr": "MN"
},
{
"name": "Mississippi",
"abbr": "MS"
},
{
"name": "Missouri",
"abbr": "MO"
},
{
"name": "Montana",
"abbr": "MT"
},
{
"name": "Nebraska",
"abbr": "NE"
},
{
"name": "Nevada",
"abbr": "NV"
},
{
"name": "New Hampshire",
"abbr": "NH"
},
{
"name": "New Jersey",
"abbr": "NJ"
},
{
"name": "New Mexico",
"abbr": "NM"
},
{
"name": "New York",
"abbr": "NY"
},
{
"name": "North Carolina",
"abbr": "NC"
},
{
"name": "North Dakota",
"abbr": "ND"
},
{
"name": "Ohio",
"abbr": "OH"
},
{
"name": "Oklahoma",
"abbr": "OK"
},
{
"name": "Oregon",
"abbr": "OR"
},
{
"name": "Pennsylvania",
"abbr": "PA"
},
{
"name": "Rhode Island",
"abbr": "RI"
},
{
"name": "South Carolina",
"abbr": "SC"
},
{
"name": "South Dakota",
"abbr": "SD"
},
{
"name": "Tennessee",
"abbr": "TN"
},
{
"name": "Texas",
"abbr": "TX"
},
{
"name": "Utah",
"abbr": "UT"
},
{
"name": "Vermont",
"abbr": "VT"
},
{
"name": "Virginia ",
"abbr": "VA"
},
{
"name": "Washington",
"abbr": "WA"
},
{
"name": "West Virginia",
"abbr": "WV"
},
{
"name": "Wisconsin",
"abbr": "WI"
},
{
"name": "Wyoming",
"abbr": "WY"
}
] |
This comment has been minimized.
This comment has been minimized.
The 2 lists in very compact form (without the quotes, when unnecessary):
|
This comment has been minimized.
This comment has been minimized.
had to make this for a project thought I would add it here for future help this is state name to fips code helpful for anyone working with geo data. var states_fips_hash = |
This comment has been minimized.
This comment has been minimized.
Thanks for this! |
This comment has been minimized.
This comment has been minimized.
https://gist.github.com/dsoverby1986/df89c1ed31f3b74b1b85c73bfae1d095
https://gist.github.com/dsoverby1986/820b7d8c40d5b81ef02a5c565ef0906f
https://gist.github.com/dsoverby1986/347ec802987764779fee9dc43b8247b1
https://gist.github.com/dsoverby1986/2735feab355547deab1b12fe846a3d1e |
This comment has been minimized.
This comment has been minimized.
There are currently 50 states! |
This comment has been minimized.
This comment has been minimized.
This thread is lovely!! |
This comment has been minimized.
This comment has been minimized.
Thanks!!!!!!!!!! |
This comment has been minimized.
This comment has been minimized.
Added counties as well! https://github.com/RobZuazua/state-county-json/blob/master/counties.json |
This comment has been minimized.
This comment has been minimized.
Thanks. |
This comment has been minimized.
This comment has been minimized.
Thank you |
This comment has been minimized.
This comment has been minimized.
Hi,
|
This comment has been minimized.
This comment has been minimized.
This saved me so much time. Thank You!!!!!! |
This comment has been minimized.
This comment has been minimized.
You are a saint! Thank you! |
This comment has been minimized.
This comment has been minimized.
Hi. Do we have one with regions included too? |
This comment has been minimized.
This comment has been minimized.
Wooo! |
This comment has been minimized.
This comment has been minimized.
Thank you! |
This comment has been minimized.
This comment has been minimized.
Awesome!! |
This comment has been minimized.
This comment has been minimized.
This is beautiful! |
This comment has been minimized.
This comment has been minimized.
Thanks! |
This comment has been minimized.
This comment has been minimized.
thanks so much @cdleon |
This comment has been minimized.
This comment has been minimized.
Thanks so much. I really appreciate the time taken on build this gist. |
This comment has been minimized.
This comment has been minimized.
Thank you so much this saved me so much time, you're the coolest :) |
This comment has been minimized.
This comment has been minimized.
Here's a "name", "value" version for anyone needing this for a Quasar selector: https://gist.github.com/space-dweeb/e9ddde8c26e837fdf2d1abe01e62bb8e |
This comment has been minimized.
This comment has been minimized.
In case you need it as a python tuple to be used in django model choices field for example
|
This comment has been minimized.
This comment has been minimized.
In case anyone uses b-form-select from Bootstrap Vue and wants to show and use the full state name but gets abbreviations from an api { |
This comment has been minimized.
This comment has been minimized.
wow, awesome and thanks so much! |
This comment has been minimized.
This comment has been minimized.
This is freakin' awesome! B-) Saved me a bunch of work! Thanks! :-D |
This comment has been minimized.
This comment has been minimized.
Super helpful!! Thanks! |
This comment has been minimized.
This comment has been minimized.
Thanks, helpful still! |
This comment has been minimized.
This comment has been minimized.
Thanks! |
This comment has been minimized.
This comment has been minimized.
Awesome! Love it! |
This comment has been minimized.
This comment has been minimized.
The numeric codes for states in previous examples are wrong. Here's a list with name, abbreviation, and code based on this wikipedia page. https://gist.github.com/rhythnic/3598aab0cf48477d253d7fb802b44abb |
This comment has been minimized.
This comment has been minimized.
Thanks! |
This comment has been minimized.
This comment has been minimized.
If you need typescript constant to read values into dropdown: const states = [ |
This comment has been minimized.
This comment has been minimized.
KokalaBhanusri Thank you! |
This comment has been minimized.
This comment has been minimized.
Full state name to AP style json object:
|
This comment has been minimized.
This comment has been minimized.
@KokalaBhanusri |
This comment has been minimized.
This comment has been minimized.
Very helpful!! |
This comment has been minimized.
This comment has been minimized.
Abbreviations with 2019 populations from the US Census Bureau: state_hash = { |
This comment has been minimized.
This comment has been minimized.
I am developing an android application and I have a registration form where I am asking for State and City (U.S. only) from the user. How can I use this file in my android app? |
This comment has been minimized.
This comment has been minimized.
@sallu-tech I'm not an android developer, but I'd imagine you'd just read in a JSON file, like any other modern programming language can. Tutorial here: https://www.tutorialspoint.com/android/android_json_parser.htm |
This comment has been minimized.
This comment has been minimized.
@inspectordanno Thank you. |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
thanks !!! |
This comment has been minimized.
This comment has been minimized.
thanks! |
This comment has been minimized.
This comment has been minimized.
Thank you! |
This comment has been minimized.
This comment has been minimized.
@pycoach - Texas is listed twice. On a side note, why do states not have spaces in between words (ex: WestVirginia)? |
This comment has been minimized.
This comment has been minimized.
Thanks for sharing. Really appreciated :p |
This comment has been minimized.
This comment has been minimized.
Thanks for the help! Here's a version for Sequelize migrations |
This comment has been minimized.
I like it