Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS : How to enable Audio directions on Google Maps

I am using the below code to open Google Maps from my iOS application where I am passing starting and End point of places.

It navigates correctly from start point to end point but does not guide through Audio (voice).

I want to enable voice guidance facility.

please help

ClientState *clientState = [ClientState sharedInstance];            
CLLocation *currentLocation = clientState.currentLocation;            

NSString *googleMapsURLString = [NSString stringWithFormat:@"maps://maps.google.com/?xyz=xyz&saddr=%1.8f,%1.8f&daddr=%@,%@",
         currentLocation.coordinate.latitude, currentLocation.coordinate.longitude, trip.pickupLatitude, trip.pickupLongitude];

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:googleMapsURLString]];
like image 774
Azhar Avatar asked Feb 09 '13 15:02

Azhar


Video Answer


1 Answers

The Maps app will handle audio guidance for you. You do not need to enable it. If you open the Apple Maps URL scheme or Google Maps app, it will guide the user via audio if they have their audio turned on. Voice directions only work on certain phones for the Apple Maps App. The iPhone 5 and 4S have voice direction, while the iPhone 4 and 3GS do not. Just like there is no Siri on iPhone 4, there is no Siri Voice Navigation.

See this thread on Apple for extra discussion.

like image 175
Chris Truman Avatar answered Nov 14 '22 04:11

Chris Truman