{"_id":"560daadc6660a03700976ddf","category":{"_id":"560dabe1961d492300d94b4b","project":"560d5ac71ec45619006069d6","pages":[],"__v":0,"version":"560d5ac71ec45619006069d9","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-10-01T21:55:45.773Z","from_sync":false,"order":3,"slug":"radius-based-searching","title":"Radius-based Searching"},"githubsync":"","project":"560d5ac71ec45619006069d6","user":"560d5a4faf97231900938125","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":1,"editedParams":true,"editedParams2":true,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-10-01T21:51:24.574Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"method":"get","results":{"codes":[{"language":"json","code":"{\n  \"businesses\": [\n    {\n      \"id\": 796951,\n      \"establishment_id\": 1215,\n      \"phone\": \"1-888-758-4389\",\n      \"latitude\": \"28.53789\",\n      \"longitude\": \"-81.37881\",\n      \"name\": \"Alternative Fuels Stations\",\n      \"brand_name\": \"Alternative Fuels Stations\",\n      \"formatted_address\": \"400 S Orange Ave, Orlando, FL 32801\",\n      \"website\": \"http://developer.nrel.gov/api/alt-fuel-stations/v1.json?api_key=41gSpv02vWkQRB53TZnc0I5oCMKlpgQCbvTOIjgr&state=FL\",\n      \"claimed\": 0\n    },\n    {\n      \"id\": 136359,\n      \"establishment_id\": 168,\n      \"phone\": \"1-407-316-0300\",\n      \"latitude\": \"28.53876\",\n      \"longitude\": \"-81.37871\",\n      \"name\": \"Starbucks\",\n      \"brand_name\": \"Starbucks\",\n      \"formatted_address\": \"325 S Orange Ave, Orlando, FL 32801-3711\",\n      \"website\": \"http://www.starbucks.com\",\n      \"claimed\": 0,\n      \"amenities\": [\n        {\n          \"id\": 6,\n          \"name\": \"Coffee\",\n          \"background_color\": \"#814000\",\n          \"image_prefix\": \"Coffee\",\n          \"priority\": 1\n        }\n      ],\n      \"top_priority_amenity\": {\n        \"id\": 6,\n        \"name\": \"Coffee\",\n        \"background_color\": \"#814000\",\n        \"image_prefix\": \"Coffee\",\n        \"priority\": 1\n      }\n    },\n    {\n      \"id\": 369463,\n      \"establishment_id\": 904,\n      \"phone\": \"1-407-313-9000\",\n      \"latitude\": \"28.53881\",\n      \"longitude\": \"-81.37899\",\n      \"name\": \"Autograph Collection\",\n      \"brand_name\": \"Autograph Collection\",\n      \"formatted_address\": \"325 South Orange Avenue, Orlando, FL 32801\",\n      \"website\": \"http://www.marriott.com/hotels/fact-sheet/travel/mcoak-grand-bohemian-hotel-orlando-autograph-collection/\",\n      \"claimed\": 0,\n      \"amenities\": [\n        {\n          \"id\": 8,\n          \"name\": \"Hotel\",\n          \"background_color\": \"#333333\",\n          \"image_prefix\": \"Lodging\",\n          \"priority\": 1\n        },\n        {\n          \"id\": 5,\n          \"name\": \"Restaurant\",\n          \"background_color\": \"#CC3333\",\n          \"image_prefix\": \"Food\",\n          \"priority\": 1\n        }\n      ],\n      \"top_priority_amenity\": {\n        \"id\": 8,\n        \"name\": \"Hotel\",\n        \"background_color\": \"#333333\",\n        \"image_prefix\": \"Lodging\",\n        \"priority\": 1\n      }\n    },\n    {\n      \"id\": 796879,\n      \"establishment_id\": 1215,\n      \"phone\": \"1-888-758-4389\",\n      \"latitude\": \"28.5374\",\n      \"longitude\": \"-81.38052\",\n      \"name\": \"Alternative Fuels Stations\",\n      \"brand_name\": \"Alternative Fuels Stations\",\n      \"formatted_address\": \"460 Boone Ave, Orlando, FL 32801\",\n      \"website\": \"http://developer.nrel.gov/api/alt-fuel-stations/v1.json?api_key=41gSpv02vWkQRB53TZnc0I5oCMKlpgQCbvTOIjgr&state=FL\",\n      \"claimed\": 0\n    },\n    {\n      \"id\": 796841,\n      \"establishment_id\": 1215,\n      \"phone\": \"1-888-758-4389\",\n      \"latitude\": \"28.53619\",\n      \"longitude\": \"-81.37977\",\n      \"name\": \"Alternative Fuels Stations\",\n      \"brand_name\": \"Alternative Fuels Stations\",\n      \"formatted_address\": \"100 W Anderson St, Orlando, FL 32801\",\n      \"website\": \"http://developer.nrel.gov/api/alt-fuel-stations/v1.json?api_key=41gSpv02vWkQRB53TZnc0I5oCMKlpgQCbvTOIjgr&state=FL\",\n      \"claimed\": 0\n    },\n    {\n      \"id\": 420490,\n      \"establishment_id\": 141,\n      \"phone\": \"1-407-835-9929\",\n      \"latitude\": \"28.54004\",\n      \"longitude\": \"-81.38016\",\n      \"name\": \"Five Guys Burgers\",\n      \"brand_name\": \"Five Guys Burgers\",\n      \"formatted_address\": \"55 W. Church Street, Unit 141, Orlando, FL 32801\",\n      \"website\": \"http://www.fiveguys.com\",\n      \"claimed\": 0,\n      \"amenities\": [\n        {\n          \"id\": 4,\n          \"name\": \"Fast Food\",\n          \"background_color\": \"#FF3366\",\n          \"image_prefix\": \"FastFood\",\n          \"priority\": 1\n        }\n      ],\n      \"top_priority_amenity\": {\n        \"id\": 4,\n        \"name\": \"Fast Food\",\n        \"background_color\": \"#FF3366\",\n        \"image_prefix\": \"FastFood\",\n        \"priority\": 1\n      }\n    },\n    {\n      \"id\": 648597,\n      \"establishment_id\": 998,\n      \"phone\": \"1-407-447-7950\",\n      \"latitude\": \"28.54042\",\n      \"longitude\": \"-81.37946\",\n      \"name\": \"Kres Chophouse\",\n      \"brand_name\": \"Independent Restaurant\",\n      \"formatted_address\": \"17 W Church St, Orlando, FL 32801\",\n      \"website\": \"\",\n      \"claimed\": 0,\n      \"amenities\": [\n        {\n          \"id\": 5,\n          \"name\": \"Restaurant\",\n          \"background_color\": \"#CC3333\",\n          \"image_prefix\": \"Food\",\n          \"priority\": 1\n        }\n      ],\n      \"top_priority_amenity\": {\n        \"id\": 5,\n        \"name\": \"Restaurant\",\n        \"background_color\": \"#CC3333\",\n        \"image_prefix\": \"Food\",\n        \"priority\": 1\n      }\n    }\n    ...\n  ]\n}","name":"Searching around Orlando (Search ID Omitted)","status":200},{"name":"Searching around Orlando (WiFi Search ID Included)","status":200,"language":"json","code":"{\n  \"businesses\": [\n    {\n      \"id\": 450167,\n      \"establishment_id\": 1059,\n      \"phone\": \"1-407-839-0830\",\n      \"latitude\": \"28.54377\",\n      \"longitude\": \"-81.38041\",\n      \"name\": \"Tropical Smoothie Cafe\",\n      \"brand_name\": \"Tropical Smoothie Cafe\",\n      \"formatted_address\": \"63 West Washington Street, Orlando, FL 32801\",\n      \"website\": \"http://dealers.tropicalsmoothie.com/FL/ORLANDO/FL-143\",\n      \"claimed\": 0,\n      \"amenities\": [\n        {\n          \"id\": 4,\n          \"name\": \"Fast Food\",\n          \"background_color\": \"#FF3366\",\n          \"image_prefix\": \"FastFood\",\n          \"priority\": 1\n        }\n      ],\n      \"top_priority_amenity\": {\n        \"id\": 4,\n        \"name\": \"Fast Food\",\n        \"background_color\": \"#FF3366\",\n        \"image_prefix\": \"FastFood\",\n        \"priority\": 1\n      }\n    },\n    {\n      \"id\": 40645,\n      \"establishment_id\": 66,\n      \"phone\": \"1-407-423-1671\",\n      \"latitude\": \"28.54789\",\n      \"longitude\": \"-81.37629\",\n      \"name\": \"Travelodge\",\n      \"brand_name\": \"Travelodge\",\n      \"formatted_address\": \"409 North Magnolia Avenue, Orlando, FL 32801\",\n      \"website\": \"http://www.travelodge.com/hotels/florida/orlando/travelodge-orlando-downtown-centroplex/hotel-overview\",\n      \"claimed\": 0,\n      \"amenities\": [\n        {\n          \"id\": 8,\n          \"name\": \"Hotel\",\n          \"background_color\": \"#333333\",\n          \"image_prefix\": \"Lodging\",\n          \"priority\": 1\n        },\n        {\n          \"id\": 5,\n          \"name\": \"Restaurant\",\n          \"background_color\": \"#CC3333\",\n          \"image_prefix\": \"Food\",\n          \"priority\": 1\n        }\n      ],\n      \"top_priority_amenity\": {\n        \"id\": 8,\n        \"name\": \"Hotel\",\n        \"background_color\": \"#333333\",\n        \"image_prefix\": \"Lodging\",\n        \"priority\": 1\n      }\n    },\n    {\n      \"id\": 265188,\n      \"establishment_id\": 59,\n      \"phone\": \"1-407-843-6664\",\n      \"latitude\": \"28.54735\",\n      \"longitude\": \"-81.38389\",\n      \"name\": \"Sheraton\",\n      \"brand_name\": \"Sheraton\",\n      \"formatted_address\": \"400 West Livingston Street, Orlando, FL 32801\",\n      \"website\": \"http://www.starwoodhotels.com/sheraton/property/overview/index.html?language=en_US&propertyID=3576\",\n      \"claimed\": 0,\n      \"amenities\": [\n        {\n          \"id\": 8,\n          \"name\": \"Hotel\",\n          \"background_color\": \"#333333\",\n          \"image_prefix\": \"Lodging\",\n          \"priority\": 1\n        }\n      ],\n      \"top_priority_amenity\": {\n        \"id\": 8,\n        \"name\": \"Hotel\",\n        \"background_color\": \"#333333\",\n        \"image_prefix\": \"Lodging\",\n        \"priority\": 1\n      }\n    },\n    {\n      \"id\": 130889,\n      \"establishment_id\": 168,\n      \"phone\": \"1-407-648-2591\",\n      \"latitude\": \"28.54308\",\n      \"longitude\": \"-81.36863\",\n      \"name\": \"Starbucks\",\n      \"brand_name\": \"Starbucks\",\n      \"formatted_address\": \"20 N. Summerlin Ave, Orlando, FL 32801-2930\",\n      \"website\": \"http://www.starbucks.com\",\n      \"claimed\": 0,\n      \"amenities\": [\n        {\n          \"id\": 6,\n          \"name\": \"Coffee\",\n          \"background_color\": \"#814000\",\n          \"image_prefix\": \"Coffee\",\n          \"priority\": 1\n        }\n      ],\n      \"top_priority_amenity\": {\n        \"id\": 6,\n        \"name\": \"Coffee\",\n        \"background_color\": \"#814000\",\n        \"image_prefix\": \"Coffee\",\n        \"priority\": 1\n      }\n    },\n    {\n      \"id\": 451303,\n      \"establishment_id\": 1059,\n      \"phone\": \"1-407-896-4999\",\n      \"latitude\": \"28.54878\",\n      \"longitude\": \"-81.36336\",\n      \"name\": \"Tropical Smoothie Cafe\",\n      \"brand_name\": \"Tropical Smoothie Cafe\",\n      \"formatted_address\": \"433 N. Mills Avenue, Orlando, FL 32803\",\n      \"website\": \"http://dealers.tropicalsmoothie.com/FL/ORLANDO/FL-057\",\n      \"claimed\": 0,\n      \"amenities\": [\n        {\n          \"id\": 4,\n          \"name\": \"Fast Food\",\n          \"background_color\": \"#FF3366\",\n          \"image_prefix\": \"FastFood\",\n          \"priority\": 1\n        }\n      ],\n      \"top_priority_amenity\": {\n        \"id\": 4,\n        \"name\": \"Fast Food\",\n        \"background_color\": \"#FF3366\",\n        \"image_prefix\": \"FastFood\",\n        \"priority\": 1\n      }\n    },\n    {\n      \"id\": 203710,\n      \"establishment_id\": 153,\n      \"phone\": \"1-407-648-1846\",\n      \"latitude\": \"28.53184\",\n      \"longitude\": \"-81.3977\",\n      \"name\": \"McDonalds\",\n      \"brand_name\": \"McDonalds\",\n      \"formatted_address\": \"830 S Orange Blossom Trail, Orlando, FL 32805\",\n      \"website\": \"http://www.mcflorida.com/10616\",\n      \"claimed\": 0,\n      \"amenities\": [\n        {\n          \"id\": 4,\n          \"name\": \"Fast Food\",\n          \"background_color\": \"#FF3366\",\n          \"image_prefix\": \"FastFood\",\n          \"priority\": 1\n        }\n      ],\n      \"top_priority_amenity\": {\n        \"id\": 4,\n        \"name\": \"Fast Food\",\n        \"background_color\": \"#FF3366\",\n        \"image_prefix\": \"FastFood\",\n        \"priority\": 1\n      }\n    }\n    ...\n  ]\n}"}]},"settings":"","auth":"optional","params":[{"_id":"560eba3039fad419002ae1ee","ref":"","in":"path","required":true,"desc":"","default":"","type":"double","name":"latitude"},{"_id":"560eba3039fad419002ae1ed","ref":"","in":"path","required":true,"desc":"","default":"","type":"double","name":"longitude"},{"_id":"560eba3039fad419002ae1ec","ref":"","in":"path","required":false,"desc":"Optional [Search Result](doc:search-result) `id` to filter results","default":"","type":"int","name":"search_result_id"}],"url":"/nearby/businesses/:latitude/:longitude/:search_result_id"},"isReference":false,"order":0,"body":"** JSON Response **\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Key\",\n    \"h-1\": \"Value\",\n    \"h-2\": \"Description\",\n    \"0-0\": \"`businesses`\",\n    \"0-1\": \"Array of [Business / POI](doc:business-poi)s\",\n    \"0-2\": \"An array of [Business / POI](doc:business-poi) objects. The distance limit for returned results is 50 miles from the supplied coordinate. And the maximum number of results in is 100 businesses.\"\n  },\n  \"cols\": 3,\n  \"rows\": 1\n}\n[/block]\nThis API allows for radius-based searching for [Business / POI](doc:business-poi)s without having to tie them to an [Exit](doc:exit). This opens up the iExit POI Database to a being able to supply radius-based POI searching applications, in addition to supplying exit-based results.\n\nThe maximum number of results returned in the `businesses` array is 100. This is done for performance reasons. And the maximum distance for results returned is 50 miles from the coordinate supplied.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/hjX8jNXrS3SfbWdjVuuX_NearbyBusinessSearchWiFi.png\",\n        \"NearbyBusinessSearchWiFi.png\",\n        \"720\",\n        \"1280\",\n        \"#37a55e\",\n        \"\"\n      ],\n      \"caption\": \"The `Nearby Businesses` API in use inside the iExit Android app, displayed in List Mode.\"\n    }\n  ]\n}\n[/block]","excerpt":"Find individual businesses around a given latitude/longitude.","slug":"nearby-pois","type":"endpoint","title":"Nearby POIs"}

getNearby POIs

Find individual businesses around a given latitude/longitude.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

latitude:
required
double
longitude:
required
double
search_result_id:
integer
Optional [Search Result](doc:search-result) `id` to filter results

Result Format


Documentation

** JSON Response ** [block:parameters] { "data": { "h-0": "Key", "h-1": "Value", "h-2": "Description", "0-0": "`businesses`", "0-1": "Array of [Business / POI](doc:business-poi)s", "0-2": "An array of [Business / POI](doc:business-poi) objects. The distance limit for returned results is 50 miles from the supplied coordinate. And the maximum number of results in is 100 businesses." }, "cols": 3, "rows": 1 } [/block] This API allows for radius-based searching for [Business / POI](doc:business-poi)s without having to tie them to an [Exit](doc:exit). This opens up the iExit POI Database to a being able to supply radius-based POI searching applications, in addition to supplying exit-based results. The maximum number of results returned in the `businesses` array is 100. This is done for performance reasons. And the maximum distance for results returned is 50 miles from the coordinate supplied. [block:image] { "images": [ { "image": [ "https://files.readme.io/hjX8jNXrS3SfbWdjVuuX_NearbyBusinessSearchWiFi.png", "NearbyBusinessSearchWiFi.png", "720", "1280", "#37a55e", "" ], "caption": "The `Nearby Businesses` API in use inside the iExit Android app, displayed in List Mode." } ] } [/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 }}