How to make an NSURL that contains a | (pipe character)?
Posted
by aks
on Stack Overflow
See other posts from Stack Overflow
or by aks
Published on 2010-06-14T20:23:48Z
Indexed on
2010/06/14
20:32 UTC
Read the original article
Hit count: 229
Hi all, I am trying to access google maps' forward geocoding service from my iphone app. When i try to make an NSURL from a string with a pipe in it I just get a nil pointer.
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"];
I dont see any other way in the google api to send bounds coordinates with out a pipe. Any ideas about how I can do this?
© Stack Overflow or respective owner