Hello everyone, I am linking to a specific location from my app to the Maps app, and I would like to give said location a custom title. I am very close to getting this working, but something wonky is happening whenever there is a space in the title and I can't figure out the correct code to get it working. Here is what I have:
Code:
NSString *mapURL = [[[NSString alloc] initWithFormat: @"http://maps.google.com/maps?f=q&source=s_q&hl=en&q=%@,+%@+(Custom%20Title%20Here)", videoLat, videoLon] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
[[UIApplication sharedApplication] openURL: [NSURL URLWithString: mapURL]];
Everything is working correctly, the latitude and longitude variables and being pulled in, I just don't know the correct formatting to get the title working. The above example is pretty close, the title would be something like Custom2itle2ere. I also tried using %A0 for the spaces in the title, but this produced a bunch of garbled text. Anyhow, any help would be greatly appreciated, thanks!