2011-06-28 174 views
1

我使用谷歌地圖API追蹤兩點間的路徑插入文字說明,我的代碼是這樣的:與谷歌地圖API

NSString *urlString = [NSString stringWithFormat:@"https://maps.google.com/maps?saddr=%f,%f&daddr=%f,%f&hl=fr&output=embed&om=5",latUtilisateur,longUtilisateur,latStation,longStation]; 

//Create a URL object. 
NSURL *url = [NSURL URLWithString:urlString]; 

//URL Requst Object 
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url]; 

//Load the request in the UIWebView. 
[webView loadRequest:requestObj]; 

然而,這並沒有有文字說明功能。我在上面的請求或其他東西中缺少一些參數嗎?

回答