2013-02-09 21 views
13

我正在使用下面的代碼從iOS應用程序打開Goog​​le地圖,在該應用程序中傳遞地點的起點和終點。iOS:如何在谷歌地圖上啓用音頻指示

它從起點到終點正確導航,但不通過導航音頻(語音)

我想啓用語音指導功能。

請幫助

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]]; 
+0

你使用的是iOS 6嗎?它不支持語音控制​​ios 5沒有 – 2013-02-09 15:31:51

+0

我可以在iOS 6中實現這一點...或任何真實的鏈接..? – Azhar 2013-02-09 17:09:49

+0

不可能在ios6對不起還沒有反正 – 2013-02-09 17:10:34

回答

2

的地圖應用程序將處理的音頻指導你。你不需要啓用它。如果您打開Apple Maps URL方案或Google地圖應用程序,則會在音頻打開時通過音頻引導用戶。語音指示只適用於Apple Maps App的某些手機。 iPhone 5和4S有聲音方向,而iPhone 4和3GS則沒有。就像iPhone 4上沒有Siri一樣,沒有Siri語音導航。

請參閱this thread Apple的額外討論。