IPhone : Google Place autocomplete api filtering results not work as expected

on Monday, February 23, 2015

I'm working with google place autocomplete api to retrive in my ios app a list of cities (administrative_area_level_3 or locality). I don't want to retrive other results than this kind... In documentation i have fount this call:



https://maps.googleapis.com/maps/api/place/autocomplete/json?input=Vict&types;=(cities)&language;=pt_BR&key;=API_KEY


I have used this call and the "(cities)" type to achive this behaviour as i read in documentation:


"the (cities) type collection instructs the Places service to return results that match locality or administrative_area_level_3"


Actually this request return to me some results that aren't locality or administrative_level_3. How i can remove from results all the others type (establishment,ecc...) and leave only locality for example?


0 comments:

Post a Comment