Re: [Google Maps API Web Services] Places Autocomplete API

422 views
Skip to first unread message

Chris Green

unread,
Jan 21, 2013, 6:52:15 PM1/21/13
to google-maps-ap...@googlegroups.com
Hi,

As mentioned in the Places API documentation, you set the type filter and component restrictions as below: 


Regards, 

Chris


Chris Green |
 Google Developer Relations - API Specialist |
 chg...@google.com



On Thu, Jan 3, 2013 at 12:30 AM, Pritish Sahoo <roc...@gmail.com> wrote:
Hi All,

Is there a way where I can get only cities related to a particular State using Places Auto Complete API when user types in the letters ?

Using Java Script you can give types as Cities is it also possible to do it in the web service ?
e.g.

var options = {
        types: ['(cities)'],
        componentRestrictions: { country: 'us' }
    };

--
You received this message because you are subscribed to the Google Groups "Google Maps API Web Services" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-api-web-services/-/MyawQYsKShcJ.
To post to this group, send email to google-maps-ap...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api-web-...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api-web-services?hl=en.

Reply all
Reply to author
Forward
0 new messages