php - nearby location and matching keys locations -


i want nearby location given latitude , longitude using google api

and list of locations match passed address text.

i tried https://developers.google.com/places/documentation/search

    https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-33.8670522,151.1957362 &rankby=distance&types=food&key=addyourownkeyhere 

but can not pass text here, how combination of both, using lat long nearby location or text matching areas

let me share key

key=aizasydizrd38fgzxpxg98cjd7eeot8xvay6_ww 

please give me working url

updated:

i need 2 api

1)textsearch

for tried https://maps.googleapis.com/maps/api/geocode/json?address=iscon

but not giving giving results (here want autocomplete more 5 results)

2)nearbyseach

for tried https://maps.googleapis.com/maps/api/place/nearbysearch/json?radius=500&location=34.0522,-118.244&key=aizasydizrd38fgzxpxg98cjd7eeot8xvay6_ww , working fine

try this, may filter results more accurately :

https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-33.8670522,151.1957362&radius=500&types=food&name=urlencode('search term ')&key=addyourownkeyhere

just use 'name' parameter filter results, pass query string name parameter, give results related searched term.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -