Skip to content

Instantly share code, notes, and snippets.

@killa-kyle
Created September 24, 2015 20:24
Show Gist options
  • Save killa-kyle/f36f6f168a0ef1de1c2d to your computer and use it in GitHub Desktop.
Save killa-kyle/f36f6f168a0ef1de1c2d to your computer and use it in GitHub Desktop.
US states and their border states
$state_border['AK']=array('WA');
$state_border['AL']=array('TN','GA','FL','MS');
$state_border['AR']=array('MO','TN','MS','LA','TX','OK');
$state_border['AZ']=array('UT','CO','NM','CA','NV');
$state_border['CA']=array('OR','NV','AZ','HI');
$state_border['CO']=array('WY','NE','KS','OK','NM','AZ','UT');
$state_border['CT']=array('MA','RI','NY');
$state_border['DC']=array('MD','VA');
$state_border['DE']=array('PA','NJ','MD');
$state_border['FL']=array('GA','AL');
$state_border['GA']=array('NC','SC','FL','AL','TN');
$state_border['HI']=array('CA');
$state_border['IA']=array('MN','WI','IL','MO','NE','SD');
$state_border['ID']=array('MT','WY','UT','NV','OR','WA');
$state_border['IL']=array('WI','IN','KY','MO','IA');
$state_border['IN']=array('MI','OH','KY','IL');
$state_border['KS']=array('NE','MO','OK','CO');
$state_border['KY']=array('OH','WV','VA','TN','MO','IL','IN');
$state_border['LA']=array('AR','MS','TX');
$state_border['MA']=array('NH','RI','CT','NY','VT');
$state_border['MD']=array('PA','DE','DC','VA','WV');
$state_border['ME']=array('NH');
$state_border['MI']=array('OH','IN','WI');
$state_border['MN']=array('WI','IA','SD','ND');
$state_border['MO']=array('IA','IL','KY','TN','AR','OK','KS','NE');
$state_border['MS']=array('TN','AL','LA','AR');
$state_border['MT']=array('ND','SD','WY','ID');
$state_border['NC']=array('VA','SC','GA','TN');
$state_border['ND']=array('MN','SD','MT');
$state_border['NE']=array('SD','IA','MO','KS','CO','WY');
$state_border['NH']=array('ME','MA','VT');
$state_border['NJ']=array('NY','DE','PA');
$state_border['NM']=array('CO','OK','TX','AZ','UT');
$state_border['NV']=array('ID','UT','AZ','CA','OR');
$state_border['NY']=array('VT','MA','CT','NJ','PA');
$state_border['OH']=array('PA','WV','KY','IN','MI');
$state_border['OK']=array('KS','MO','AR','TX','NM','CO');
$state_border['OR']=array('WA','ID','NV','CA');
$state_border['PA']=array('NY','NJ','DE','MD','WV','OH');
$state_border['RI']=array('MA','CT');
$state_border['SC']=array('NC','GA');
$state_border['SD']=array('ND','MN','IA','NE','WY','MT');
$state_border['TN']=array('KY','VA','NC','GA','AL','MS','AR','MO');
$state_border['TX']=array('OK','AR','LA','NM');
$state_border['UT']=array('ID','WY','CO','NM','AZ','NV');
$state_border['VA']=array('MD','DC','NC','TN','KY','WV');
$state_border['VT']=array('NH','MA','NY');
$state_border['WA']=array('AK','ID','OR');
$state_border['WI']=array('MI','IL','IA','MN');
$state_border['WV']=array('PA','MD','VA','KY','OH');
$state_border['WY']=array('MT','SD','NE','CO','UT','ID');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment