Я использую JSON iPhone Framework v2.3.1 и хочу запросить у Google Maps информацию о магазинах, отелях и т. Д. Можно создать URL-адрес, который дает мне список направлений?
На самом деле я использую этот код Objective C.
- (void) searchCoordinatesForAddress {
//Build the string to Query Google Maps.
//I don't know how to change this URL direction.
NSMutableString *urlString = [NSMutableString stringWithFormat:@"http://maps.google.com/maps/geo?q=Paris?output=json"];
//Replace Spaces with a '+' character.
[urlString setString:[urlString stringByReplacingOccurrencesOfString:@" " withString:@"+"]];
//Create NSURL string from a formate URL string.
NSURL *url = [NSURL URLWithString:urlString];
//Setup and start an async download.
//Note that we should test for reachability!.
NSURLRequest *request = [[NSURLRequest alloc] initWithURL:url];
NSURLConnection *connection = [[NSURLConnection alloc] initWithRequest:request delegate:self];
[connection release];
[request release];
}
Спасибо, что прочитали.