Google Places API Autocomplete on iOS

若如初见. 提交于 2019-12-04 15:39:58

I got it!

The paramenter sensor should receive either @"true"or @"false", and not @(true)or @(false).

For the record, the API key used is indeed the Browser Key, and not an iOS key.

You should init httpClient with base URL @"https://maps.googleapis.com/" and get path /maps/api/place/autocomplete/json. Base URL - host only, it does not take other parts of path, so in your case you get request to URL "https://maps.googleapis.com/json".

https://maps.googleapis.com/maps/api/geocode/json?address="%@","%@"&sensor=false,yourAddress,your c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!