{"id":878,"date":"2021-07-12T13:12:30","date_gmt":"2021-07-12T12:12:30","guid":{"rendered":"https:\/\/www.kolkataonweb.com\/code-bank\/?p=878"},"modified":"2021-12-13T21:13:27","modified_gmt":"2021-12-13T21:13:27","slug":"places-search-api-call","status":"publish","type":"post","link":"https:\/\/www.kolkataonweb.com\/code-bank\/miscellaneous\/places-search-api-call\/","title":{"rendered":"Places Search API Call"},"content":{"rendered":"<p>Here is summary of how to call Places search API of Bing, Google and Here Map.<\/p>\n<p>Here is little known among most developers, specially developers of India, but it is a good API and there map is also very good. Their map have internal maps (floor layout) of many buildings.<\/p>\n<h5>Here Maps API Call<\/h5>\n<p>Below is the latest v7 API, all other APIs are obsolete<br \/>\n<!--more-->&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>Method:<br \/>\nGET<\/p>\n<p>Request:<br \/>\nhttps:\/\/browse.search.hereapi.com\/v1\/browse<\/p>\n<p>Parameters<br \/>\n<em>apiKey<\/em>: ********************************************************<br \/>\n<em>limit <\/em>: 100<br \/>\n<em>in <\/em>: circle: 22.572645,88.363892;r=1609<br \/>\n<em>at <\/em>: 22.572645,88.363892<br \/>\n<em>categories <\/em>: 100-1100<\/p>\n<p>Example Request:<br \/>\nhttps:\/\/browse.search.hereapi.com\/v1\/browse?apiKey=*****************************************************&amp;limit=100&amp;in=circle: 22.572645,88.363892;r=1609&amp;at=22.572645,88.363892&amp;categories=100-1100<\/p>\n<p>List of Location Types<br \/>\n<a href=\"https:\/\/developer.here.com\/documentation\/geocoding-search-api\/dev_guide\/topics-places\/places-category-system-full.html\">https:\/\/developer.here.com\/documentation\/geocoding<\/a><a href=\"https:\/\/developer.here.com\/documentation\/geocoding-search-api\/dev_guide\/topics-places\/places-category-system-full.html\">&#8211;<\/a><a href=\"https:\/\/developer.here.com\/documentation\/geocoding-search-api\/dev_guide\/topics-places\/places-category-system-full.html\">search<\/a><a href=\"https:\/\/developer.here.com\/documentation\/geocoding-search-api\/dev_guide\/topics-places\/places-category-system-full.html\">api\/dev_guide\/topics<\/a><a href=\"https:\/\/developer.here.com\/documentation\/geocoding-search-api\/dev_guide\/topics-places\/places-category-system-full.html\">&#8211;<\/a><a href=\"https:\/\/developer.here.com\/documentation\/geocoding-search-api\/dev_guide\/topics-places\/places-category-system-full.html\">places\/places<\/a><a href=\"https:\/\/developer.here.com\/documentation\/geocoding-search-api\/dev_guide\/topics-places\/places-category-system-full.html\">&#8211;<\/a><a href=\"https:\/\/developer.here.com\/documentation\/geocoding-search-api\/dev_guide\/topics-places\/places-category-system-full.html\">category<\/a><a href=\"https:\/\/developer.here.com\/documentation\/geocoding-search-api\/dev_guide\/topics-places\/places-category-system-full.html\">&#8211;<\/a><a href=\"https:\/\/developer.here.com\/documentation\/geocoding-search-api\/dev_guide\/topics-places\/places-category-system-full.html\">system<\/a><a href=\"https:\/\/developer.here.com\/documentation\/geocoding-search-api\/dev_guide\/topics-places\/places-category-system-full.html\">&#8211;<\/a><a href=\"https:\/\/developer.here.com\/documentation\/geocoding-search-api\/dev_guide\/topics-places\/places-category-system-full.html\">full.html<\/a><\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<h5>Bing Map API Call<\/h5>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p><span style=\"color: #0000ff;\">Method:\u00a0\u00a0<\/span><br \/>\nGET<\/p>\n<p><span style=\"color: #0000ff;\">Request URL:<br \/>\n<\/span><a href=\"https:\/\/dev.virtualearth.net\/REST\/v1\/LocalSearch\">https:\/\/dev.virtualearth.net\/REST\/v1\/LocalSearch<\/a><\/p>\n<p><span style=\"color: #0000ff;\">Parameters<br \/>\n<\/span><span style=\"color: #339966;\"><em>userCircularMapView <\/em>:<\/span>\u00a022.572645,88.363892,1609<br \/>\n<span style=\"color: #339966;\"><em>key<\/em> : <\/span>*******************************************************************<br \/>\n<span style=\"color: #339966;\"><em>type <\/em>: <\/span>EatDrink<br \/>\n<span style=\"color: #339966;\"><em>maxResults <\/em>: <\/span>25<\/p>\n<p><span style=\"color: #0000ff;\">Example Request:\u00a0<\/span><br \/>\nhttps:\/\/dev.virtualearth.net\/REST\/v1\/LocalSearch\/?userCircularMapView=22.572645,88.363892,1609&#038;key=*******************************************************************&#038;type=EatDrink&#038;maxResults=25<\/p>\n<p><span style=\"color: #0000ff;\">List of Location Types &#8211; each has sub-types also\u00a0<\/span><br \/>\n<a href=\"https:\/\/docs.microsoft.com\/en-us\/bingmaps\/rest-services\/common-parameters-and-types\/type-identifiers\/?toc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fbingmaps%2Frest-services%2Ftoc.json&amp;bc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FBingMaps%2Fbreadcrumb%2Ftoc.json\">https:\/\/docs.microsoft.com\/en<\/a><a href=\"https:\/\/docs.microsoft.com\/en-us\/bingmaps\/rest-services\/common-parameters-and-types\/type-identifiers\/?toc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fbingmaps%2Frest-services%2Ftoc.json&amp;bc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FBingMaps%2Fbreadcrumb%2Ftoc.json\">&#8211;<\/a><a href=\"https:\/\/docs.microsoft.com\/en-us\/bingmaps\/rest-services\/common-parameters-and-types\/type-identifiers\/?toc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fbingmaps%2Frest-services%2Ftoc.json&amp;bc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FBingMaps%2Fbreadcrumb%2Ftoc.json\">us\/bingmaps\/rest<\/a><a href=\"https:\/\/docs.microsoft.com\/en-us\/bingmaps\/rest-services\/common-parameters-and-types\/type-identifiers\/?toc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fbingmaps%2Frest-services%2Ftoc.json&amp;bc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FBingMaps%2Fbreadcrumb%2Ftoc.json\">&#8211;<\/a><a href=\"https:\/\/docs.microsoft.com\/en-us\/bingmaps\/rest-services\/common-parameters-and-types\/type-identifiers\/?toc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fbingmaps%2Frest-services%2Ftoc.json&amp;bc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FBingMaps%2Fbreadcrumb%2Ftoc.json\">services\/common<\/a><a href=\"https:\/\/docs.microsoft.com\/en-us\/bingmaps\/rest-services\/common-parameters-and-types\/type-identifiers\/?toc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fbingmaps%2Frest-services%2Ftoc.json&amp;bc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FBingMaps%2Fbreadcrumb%2Ftoc.json\">parameters<\/a><a href=\"https:\/\/docs.microsoft.com\/en-us\/bingmaps\/rest-services\/common-parameters-and-types\/type-identifiers\/?toc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fbingmaps%2Frest-services%2Ftoc.json&amp;bc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FBingMaps%2Fbreadcrumb%2Ftoc.json\">&#8211;<\/a><a href=\"https:\/\/docs.microsoft.com\/en-us\/bingmaps\/rest-services\/common-parameters-and-types\/type-identifiers\/?toc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fbingmaps%2Frest-services%2Ftoc.json&amp;bc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FBingMaps%2Fbreadcrumb%2Ftoc.json\">and<\/a><a href=\"https:\/\/docs.microsoft.com\/en-us\/bingmaps\/rest-services\/common-parameters-and-types\/type-identifiers\/?toc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fbingmaps%2Frest-services%2Ftoc.json&amp;bc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FBingMaps%2Fbreadcrumb%2Ftoc.json\">&#8211;<\/a><a href=\"https:\/\/docs.microsoft.com\/en-us\/bingmaps\/rest-services\/common-parameters-and-types\/type-identifiers\/?toc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fbingmaps%2Frest-services%2Ftoc.json&amp;bc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FBingMaps%2Fbreadcrumb%2Ftoc.json\">types\/type<\/a><a href=\"https:\/\/docs.microsoft.com\/en-us\/bingmaps\/rest-services\/common-parameters-and-types\/type-identifiers\/?toc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fbingmaps%2Frest-services%2Ftoc.json&amp;bc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FBingMaps%2Fbreadcrumb%2Ftoc.json\">&#8211;<\/a><a href=\"https:\/\/docs.microsoft.com\/en-us\/bingmaps\/rest-services\/common-parameters-and-types\/type-identifiers\/?toc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fbingmaps%2Frest-services%2Ftoc.json&amp;bc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FBingMaps%2Fbreadcrumb%2Ftoc.json\">identifiers\/?toc=https%3A%2F%2Fdocs.microsoft.com%2Fen<\/a><a href=\"https:\/\/docs.microsoft.com\/en-us\/bingmaps\/rest-services\/common-parameters-and-types\/type-identifiers\/?toc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fbingmaps%2Frest-services%2Ftoc.json&amp;bc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FBingMaps%2Fbreadcrumb%2Ftoc.json\">us%2Fbingmaps%2Frest<\/a><a href=\"https:\/\/docs.microsoft.com\/en-us\/bingmaps\/rest-services\/common-parameters-and-types\/type-identifiers\/?toc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fbingmaps%2Frest-services%2Ftoc.json&amp;bc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FBingMaps%2Fbreadcrumb%2Ftoc.json\">&#8211;<\/a><a href=\"https:\/\/docs.microsoft.com\/en-us\/bingmaps\/rest-services\/common-parameters-and-types\/type-identifiers\/?toc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fbingmaps%2Frest-services%2Ftoc.json&amp;bc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FBingMaps%2Fbreadcrumb%2Ftoc.json\">services%2Ftoc.json&amp;bc=https%3A%2F%2Fdocs.microsoft.com%2Fen<\/a><a href=\"https:\/\/docs.microsoft.com\/en-us\/bingmaps\/rest-services\/common-parameters-and-types\/type-identifiers\/?toc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fbingmaps%2Frest-services%2Ftoc.json&amp;bc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FBingMaps%2Fbreadcrumb%2Ftoc.json\">us%2FBingMaps%2Fbreadcrumb%2Ftoc.json<\/a><\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<h5>Google API Call<\/h5>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p><span style=\"color: #0000ff;\">Method:<br \/>\n<\/span>GET<\/p>\n<p><span style=\"color: #0000ff;\">Request:<br \/>\n<\/span><a href=\"https:\/\/maps.googleapis.com\/maps\/api\/place\/nearbysearch\/json\">https:\/\/maps.googleapis.com\/maps\/api\/place\/nearbysearch\/json<\/a><\/p>\n<p><span style=\"color: #0000ff;\">Parameters<br \/>\n<\/span><span style=\"color: #339966;\"><em>location <\/em>:<\/span> 22.572645,88.363892<br \/>\n<span style=\"color: #339966;\"><em>radius <\/em>: <\/span>1609<br \/>\n<span style=\"color: #339966;\"><em>key <\/em>:<\/span> *******************************************************************<br \/>\n<span style=\"color: #339966;\"><em>type<\/em> : <\/span>restaurant<\/p>\n<p><span style=\"color: #0000ff;\">Example Request:<br \/>\n<\/span>https:\/\/maps.googleapis.com\/maps\/api\/place\/nearbysearch\/json?location=22.572645,88.363892&amp;radius=1609&amp;key=*******************************************************************&amp;type=restaurant<\/p>\n<p><span style=\"color: #0000ff;\">List of Location Types<br \/>\n<\/span><a href=\"https:\/\/developers.google.com\/maps\/documentation\/places\/web-service\/supported_types\">https:\/\/developers.google.com\/maps\/documentation\/places\/web<\/a><a href=\"https:\/\/developers.google.com\/maps\/documentation\/places\/web-service\/supported_types\">service\/supported_types<\/a><\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is summary of how to call Places search API of Bing, Google and Here Map. Here is little known among most developers, specially developers of India, but it is a good API and there map is also very good. Their map have internal maps (floor layout) of many buildings. Here Maps API Call Below&hellip; <a class=\"more-link\" href=\"https:\/\/www.kolkataonweb.com\/code-bank\/miscellaneous\/places-search-api-call\/\">Continue reading <span class=\"screen-reader-text\">Places Search API Call<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,3],"tags":[330,332,331,327,328,329],"class_list":["post-878","post","type-post","status-publish","format-standard","hentry","category-miscellaneous","category-php","tag-bing-places-api","tag-google-places-search-api","tag-here-map-places-api","tag-place-search-api","tag-places-search-api","tag-restaurant-search-api","entry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/878","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/comments?post=878"}],"version-history":[{"count":3,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/878\/revisions"}],"predecessor-version":[{"id":977,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/878\/revisions\/977"}],"wp:attachment":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/media?parent=878"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/categories?post=878"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/tags?post=878"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}