views:

24

answers:

0

I am using the following code to display a map of destination:

NSString * theAddress = [myString  stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding];
NSString *urlString = [NSString stringWithFormat:@"http://maps.google.com/maps/geo?q=%@&output=csv",
                       theAddress];

NSString *locationString = [[[NSString alloc] initWithContentsOfURL:[NSURL URLWithString:urlString]] autorelease];

NSLog(@" GEO MAP  is %@", locationString);

However I want to show my current location as well on that map only I can track my current lat and long using GPS but I don't know how to display them on the map. If I pass them simply like above then I am getting just address from current lat and long.