Get local business through google local api

Programming forum

Get local business through google local api

Postby John » Sun Dec 15, 2013 7:38 pm

Anyone here tell me how to get local business through google local api? I have already latitude and longitude.
John Abraham
John
 
Posts: 419
Joined: Wed Jun 05, 2013 9:15 pm

Re: Get local business through google local api

Postby John » Sun Dec 15, 2013 7:39 pm

Its very simple. just pass values on below url. now you can get json formatted values.

Code: Select all
https://maps.googleapis.com/maps/api/place/search/json?location=-33.8670522,151.1957362&radius=500&types=food&name=harbour&sensor=false&key=YOUR_GOOGLE_API_KEY


Output:
Code: Select all
{
   "debug_info" : [],
   "html_attributions" : [],
   "results" : [],
   "status" : "REQUEST_DENIED"
}
John Abraham
John
 
Posts: 419
Joined: Wed Jun 05, 2013 9:15 pm


Return to Programming

cron