Google autocomplete filtered by business type -


i trying use google maps api give me autocomplete find nearby bars typing in bar looking for. doesn't seem fall user stories of api. having problems figuring out combination of tricks need use accomplish this.

  1. the autocomplete function not have granular enough place types (establishment, geocode) filter bars predictions full of gas stations, law offices , graveyards.

  2. the nearbysearch granular enough filter type=bar cannot used autocomplete because name , keyword parameters exact matches. when search "craw" zero_results not "crawdaddy's".

  3. next thought predictions, radarsearch of same location applying type=bar filter , take predictions in radar results based on reference number. no go either radar search using different reference number autocomplete or not returning nearest type=bay location.

so ultimately, asking on fools errand here or there someway implement autocomplete filtered business type?

thanks, tal

i'm sorry bearer of bad news. i'll go through 3 possible ideas:

  • the autocomplete match keywords. lawyers call barristers, you've got wildcard screwing on one. however, there optional types parameters allow filter type in there, if help.

  • i having opposite results on one. using following parameters:

query=etoi types=bar location=50,2 sensor=true radius=20000 

yields first result:

{ "geometry" : { "location" : { "lat" : 50.1089160, "lng" : 1.831840 } }, "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/bar-71.png", "id" : "3ec8233a732b4ee70dbb03034e2e20f84517763d", "name" : "l'etoile du jour", "rating" : 4.30, "reference" : "cnruaaaagoi6rlfsjawyy_mrdk8zybhjomaoqbletagixazn5_uas7wbwsybukiro9zcuixsa9_hcoehumkpkks6j9lxret8crx089azckfvbr-lmfmzub3sd2vowr02ypgjhxdbt7tjmpppiutwszcy0mcy9xiqhie-o5v_euralkxnelupnrouxcuht7ov6k64dt1ea8-t9nr6-o8", "types" : [ "bar", "restaurant", "food", "establishment" ], "vicinity" : "2 chaussée marcadé, abbeville" },

so guessing there more @ play, you'll have ask google on 1 or provide exact search params (excluding key) me into.

  • this terrible idea, radarsearch 5x amount of queries on credit balance other api, , not return ids cannot cross-reference. dead-end.

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -