Providing lat/long AND title in iOS Maps URL seems to cause zoom level to be ignored
        Posted  
        
            by 
                Ian Howson
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Ian Howson
        
        
        
        Published on 2012-06-30T06:23:21Z
        Indexed on 
            2012/07/06
            3:16 UTC
        
        
        Read the original article
        Hit count: 343
        
I'm writing an iOS app that shows a location in Maps upon a user action. I'd like to drop a pin with a description and zoom in to show map detail.
If I invoke Maps with the url http://maps.google.com/maps?q=-33.895851,151.18483+(Some+Description)&z=19 I get a pin with 'Some Description', but the zoom level is ignored. This does work on the Google Maps website.
If I use http://maps.google.com/maps?q=-33.895851,151.18483&z=19 the zoom works, but I get no pin.
I've tried a few combinations of ?q=, ?ll= and ?sll=, but so far, nothing will change zoom and show a description.
Any clues?
Just so we're really clear, here are some screenshots. I want this to work on a real device (i.e. with iOS Maps). The simulator uses Google Maps through Safari.
Here's what I see with URL 1 ([[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"http://maps.google.com/maps?q=-33.895851,151.18483+(Some+Description)&z=19"]];)

This is URL 2 ([[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"http://maps.google.com/maps?q=-33.895851,151.18483&z=19"]];):

This is relikd's suggestion ([[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"http://maps.google.com/maps?z=19&q=-33.895851,151.18483+(Some+Description)"]];):

I want the image I see in screenshot 2, but with a pin and a description.
© Stack Overflow or respective owner