Map Search Results
I am trying to provide useful information on an area to users based on a search term and their location.
I thought googles geo api would return a best match list of results for a query such as "swimming+pool+'my location' that I could then place an annotation for each resul开发者_Go百科t in my map view but it only returns one best match location.
How can I go about doing this?
The Google gecoder only handles addresses. Google provide a completely separate API which will geocode business names and categories, the Google AJAX Search API in Local Search mode
Bing's map api will return multiple results for a business search near a location - which is essentially what you're doing. Unsure about Google's results.
You can't use Google's HTTP API for business info. You should take a look at Yelp or Foursquare's APIs, I think.
精彩评论