I’m wondering why this is not working for cause there are a lot of examples on the web which exactly show the syntax how the maps app could be opened and a route can be displayed from a start to an endpoint.
But anyway, here is what i’m trying to do:
In my app i have a button and on when it’s pressed, the maps app should be opened and the route from A to B should be displayed. So far so good.
The only thing is, my starting point is my actual position in x/y coordinates and my end point is an adress.
So i tried to form the url like this:
http://maps.google.com/maps?daddr=Mariahilferstraße+123+1000+Wien&saddr=43.213646,11.491927
And the the code that the maps app should open is this:
UIApplication *app = [UIApplication sharedApplication];
NSMutableString *url = @"http://maps.google.com/maps?daddr=Mariahilferstraße+123+1000+Wien&saddr=43.213646,11.491927";
[app openURL:[NSURL URLWithString:url]];
The maps app does not open….
Can anybody see a problem here and can help me?
Thanks a lot!
for the geocoder (Is a simple geocoder, not reverse as I commented, reverse is for getting an address form lat/log)
tutorial