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]];
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With