tags:

views:

161

answers:

1

Hello guys,

I've started developing a small app which main goal is to draw a map using Google Maps API (v3), and to show business in the area drawn (bars, restaurants and so on).

I found the Google Places API that was supposed to be released this month but it hasn't been. As far as I know the point of that API is to offer results from the Google's database of business, so later we could put those business in the map.

However now I've found this sample which is using the AJAX Search API and Local Search Control for Google Maps to do the same thing.

So the question is, what is the point of the new Google Places API?

Thank you in advance!

A: 

The Places API returns a list of locations near a specific lat/lng, while the Local Search API allows for an arbitrary search of Google's database of business listings and other POIs.

Ossama
Well actually the Local Search API returns locations near a specific point (lat/lng) in the map too.I've just found a main difference which is that the Local Search API returns a maximum of 8 business near the given point. So I think that is the answer (but I am still not sure)
javi
The Local Search API will let you do an arbitrary text search. The Places API doesn't have that feature - it just returns the closet places near a specific lat/lng. It is true you can bias local search to a particular viewport or lat/lng, but you can't do a bounded search - within a radius, for example.
Ossama