我正在使用下面的代码从我的 iOS 应用程序中打开 Google 地图,我在该应用程序中传递了地点的起点和终点。
它从起点正确导航到终点,但不引导音频(语音)。
我想启用语音指导功能。
请帮忙
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]];