{"_id":"560d6798af9723190093812e","version":{"_id":"560d5ac71ec45619006069d9","__v":6,"project":"560d5ac71ec45619006069d6","createdAt":"2015-10-01T16:09:43.711Z","releaseDate":"2015-10-01T16:09:43.711Z","categories":["560d5ac81ec45619006069da","560dabb698a6ae3700673f9f","560dabe1961d492300d94b4b","560dac2cd10a730d0081ac92","560dacb26660a03700976de4","560ebbffcac9dc0d007af87a"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"__v":29,"project":"560d5ac71ec45619006069d6","user":"560d5a4faf97231900938125","githubsync":"","category":{"_id":"560dacb26660a03700976de4","project":"560d5ac71ec45619006069d6","version":"560d5ac71ec45619006069d9","__v":2,"pages":["5611758fb177ce190073d70a","56128cc85b4fb72300748549"],"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-10-01T21:59:14.130Z","from_sync":false,"order":1,"slug":"data-hierarchy","title":"Data Hierarchy"},"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-10-01T17:04:24.797Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"name":null,"language":"json","code":""}]},"method":"get","results":{"codes":[{"language":"json","code":"{\n  \"states\": [\n    {\n      \"id\": 1,\n      \"short_name\": \"AL\",\n      \"long_name\": \"Alabama\"\n    },\n    {\n      \"id\": 2,\n      \"short_name\": \"AR\",\n      \"long_name\": \"Arkansas\"\n    },\n    {\n      \"id\": 3,\n      \"short_name\": \"AZ\",\n      \"long_name\": \"Arizona\"\n    },\n    {\n      \"id\": 4,\n      \"short_name\": \"CA\",\n      \"long_name\": \"California\"\n    },\n    {\n      \"id\": 5,\n      \"short_name\": \"CO\",\n      \"long_name\": \"Colorado\"\n    },\n    {\n      \"id\": 6,\n      \"short_name\": \"CT\",\n      \"long_name\": \"Connecticut\"\n    },\n    {\n      \"id\": 7,\n      \"short_name\": \"DE\",\n      \"long_name\": \"Delaware\"\n    },\n    {\n      \"id\": 8,\n      \"short_name\": \"FL\",\n      \"long_name\": \"Florida\"\n    },\n    {\n      \"id\": 9,\n      \"short_name\": \"GA\",\n      \"long_name\": \"Georgia\"\n    },\n    {\n      \"id\": 10,\n      \"short_name\": \"IA\",\n      \"long_name\": \"Iowa\"\n    } \n    ...\n  ]\n}","name":"","status":200}]},"settings":"","auth":"optional","params":[],"url":"/states"},"isReference":false,"order":0,"body":"**API Response (JSON)**\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Key\",\n    \"h-1\": \"Value\",\n    \"h-2\": \"Description\",\n    \"0-0\": \"`states`\",\n    \"0-1\": \"Array of [State](doc:state)s\",\n    \"0-2\": \"An array of [State](doc:state) objects\"\n  },\n  \"cols\": 3,\n  \"rows\": 1\n}\n[/block]\nThe primary use of iExit's technology is to detect if you are driving on an exit-based highway and if so, display upcoming exits ahead of you in real time. However, another powerful feature made possible by the iExit API is to look up any highway (and its exits) across the USA. This Exit Lookup feature begins by selecting a [State](doc:state) and drilling down from there. This API returns [State](doc:state) objects for all states that have exit-based [Highway](doc:highway)s that we support.\n\n** Common Next APIs **\n- [Highways for State](doc:highways-in-state) (by using `states[]`.`id`)\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/L7TlzkDTTZSuqjZilXPi_AllStates.png\",\n        \"AllStates.png\",\n        \"720\",\n        \"1280\",\n        \"#2db25c\",\n        \"\"\n      ],\n      \"caption\": \"The 'States' API in use inside the iExit Android app\"\n    }\n  ]\n}\n[/block]","excerpt":"Get a list of US states that have exit-based highways.","slug":"states","type":"endpoint","title":"States"}

getStates

Get a list of US states that have exit-based highways.

Definition

{{ api_url }}{{ page_api_url }}

Result Format


Documentation

**API Response (JSON)** [block:parameters] { "data": { "h-0": "Key", "h-1": "Value", "h-2": "Description", "0-0": "`states`", "0-1": "Array of [State](doc:state)s", "0-2": "An array of [State](doc:state) objects" }, "cols": 3, "rows": 1 } [/block] The primary use of iExit's technology is to detect if you are driving on an exit-based highway and if so, display upcoming exits ahead of you in real time. However, another powerful feature made possible by the iExit API is to look up any highway (and its exits) across the USA. This Exit Lookup feature begins by selecting a [State](doc:state) and drilling down from there. This API returns [State](doc:state) objects for all states that have exit-based [Highway](doc:highway)s that we support. ** Common Next APIs ** - [Highways for State](doc:highways-in-state) (by using `states[]`.`id`) [block:image] { "images": [ { "image": [ "https://files.readme.io/L7TlzkDTTZSuqjZilXPi_AllStates.png", "AllStates.png", "720", "1280", "#2db25c", "" ], "caption": "The 'States' API in use inside the iExit Android app" } ] } [/block]

User Information

Try It Out

get
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}