Thursday 15 July 2010

ios - Getting Google Map direction issue -


I am working on Google Maps in Google Maps, how the driving directions for the user is represented. According to the Google Map SDK, he has given an example url which I tried but I did not get Jason response.

url:

Error: Error domain = NSURLErrorDomain code = -1000 "bad url" UserInfo = 0x9245e00 {NSUnderlyingError = 0x8643f00 "bad url", NSLocalizedDescription = bad url}

I think you should do the following

  NSURL * url = [NSURL URLWithString: [@ "http://maps.googleapis.com/maps/api/directions/json?origin= Boston, MA and Destination = Concorde, MA and WEPPoints = Charlestown, MA | Lexington, MA and Sensor = False" StringBaddings on Capaciles Using Encoding: A NSTF 8 string encoding]];    

No comments:

Post a Comment