ios - How to do a local search autocomplete as Apple's native map app does? -
i have done implementation adopting of concept apple's sample code of mklocalsearch here
currently auto complete, every time user typing inside search bar, sending new request specified:
mklocalsearchrequest.naturallanguagequery = searchbar.text mklocalsearchrequest.region = userlocation.region
but totally different set of response sever comparing apple's default map app shown in image below
then capture traffic , find request goes https://gsp-ssl.ls.apple.com/search.arpc while apple's goes https://gsp-ssl.ls.apple.com/auto_complete.arpc
is there way tune mklocalsearchrequest
same set of response objects?
mklocalsearchrequest not perform auto complete on search string, perhaps because apple wants limit number of requests 3rd party apps.
in theory reverse-engineer requests , responses https://gsp-ssl.ls.apple.com/auto_complete.arpc , perform requests yourself, not using mklocalsearchrequest @ all. lead app being rejected on app store.
Comments
Post a Comment