我正试图从我的iPhone应用程序访问谷歌地图的前向地理编码服务.当我尝试从一个带有管道的字符串中创建一个NSURL时,我只得到一个nil指针.
NSURL *searchURL = [NSURL URLWithString:@"http://maps.google.com/maps/api/geocode/json?address=6th+and+pine&bounds=37.331689,-122.030731|37.331689,-122.030731&sensor=false"];
Run Code Online (Sandbox Code Playgroud)
我没有在google api中看到任何其他方式通过管道发送边界坐标.有关如何做到这一点的任何想法?