I'm able to form URL to access Google direction webservice. But when I use optimize factor or when I use "optimize:true|", I get nil in URL. It may be because I am using "|" sign in URL.
How I can fix this?
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];