2014-02-25 24 views
0

我用下面的代碼來發動Google Maps從我目前的位置顯示步步導航到特定位置:啓動谷歌地圖以「我的位置」爲出發點標籤

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"comgooglemaps://?daddr=%f,%f&saddr=%f,%f",destLocation.coordinate.latitude, destLocation.coordinate.longitude,_currentLocation.coordinate.latitude,_currentLocation.coordinate.longitude]]; 
然而

,當Google Maps應用程序打開後,它會顯示例如「Howard Street」作爲起點標籤,這是正確的,但我怎樣才能讓Google Maps應用程序顯示「我的位置」標籤而不是街道名稱標籤作爲起點?

p.s.如果用戶點擊座標,則可以顯示「我的位置」標籤,然後從Google Maps中選擇「我的位置」作爲起點,但我希望代表用戶完成此行爲。

回答

0

from Google Maps SDK,如果我沒有提供源座標,Google Maps會自動顯示「我的位置」作爲起點標籤。

相關問題