【发布时间】:2011-07-01 06:33:33
【问题描述】:
我能够形成 URL 以访问 Google 方向网络服务。但是当我使用优化因子或使用“optimize:true|”时,URL 中的值为零。可能是因为我使用“|”登录网址。
我该如何解决这个问题?
NSString *URLAddress=[NSString stringWithFormat:@"http://maps.googleapis.com/maps/api/directions/xml?origin=%@&destination=%@&waypoints=optimize:true|%@&sensor=false ",updated_Address_Of_Source,updated_Address_Of_Destination,updated_Address_Of_Waypoint]; NSURL *URL=[NSURL URLWithString:URLAddress];
【问题讨论】:
标签: iphone