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

my app apple maps app

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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -