On Jul 30, 6:01 pm, amnesia7 <[email protected]> wrote:
> I've just tried searching for it using the Places API (http://
> code.google.com/apis/maps/documentation/javascript/examples/places-
> autocomplete.html  with the "All" radio button set) and it's a bit
> weird.
>
> If I try to type in "manchester evening news arena" it doesn't find
> anything. However, if I search for "manchester" first to set the map
> there and do another search for "manchester evening news arena" it
> finds it.
>
> Anybody got an explanation?

Did you read the documentation for the places API?
http://code.google.com/apis/maps/documentation/javascript/places.html#place_searches

>From my read, that behavior makes perfect sense:
+ Place Search Requests
+ Place Searches are initiated with a call to the PlacesService's
search() method.
+ This method takes a request with the following fields:
+ Either of:
+ bounds, which must be a google.maps.LatLngBounds object defining the
rectangle in which to
+ search; or
+ a location and radius; the former takes a google.maps.LatLng object,
and the radius takes a
+ simple integer, representing the circle's radius in meters.

And for autocomplete:
+ Adding Autocomplete
+ The Autocomplete constructor takes two arguments:
+ An HTML input element of type text. This is the input field that the
Autocomplete service will
+ monitor and attach its results to.
+ An options argument, which can contain:
+ types, which can be either establishment or geocode, representing
businesses or addresses,
+ respectively. If types is not specified, both types are returned.
+ bounds is a google.maps.LatLng object specifying the area in which
to search for Places. The
+ results are biased towards, but not restricted to, Places contained
within these bounds.

  -- Larry

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to