0
A
回答
0
谷歌地圖提供了一個Directions API,您可以調用它來獲取兩個位置之間的一系列方向。那將是一個開始的好地方。
0
因爲我知道你想爲
你需要他的谷歌API的方向
NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"https://maps.googleapis.com/maps/api/directions/json?origin=%f,%f&destination=%f,%f&sensor=false&mode=driving",getPickUpCoordinate.latitude ,getPickUpCoordinate.longitude, center.latitude, center.longitude]]; NSURLRequest *request = [NSURLRequest requestWithURL:url]; NSURLResponse *response = nil; NSError *error = nil; NSData *responseData = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error]; if (!error) { NSDictionary *responseDict = [NSJSONSerialization JSONObjectWithData:responseData options:NSJSONReadingAllowFragments error:&error];
相關問題
- 1. 谷歌地圖方向
- 2. IPhone:谷歌地圖方向
- 3. 谷歌地圖Api方向
- 4. 谷歌地圖方向線
- 5. 谷歌地圖方向
- 6. 谷歌地圖方向點
- 7. 谷歌地圖折線使用谷歌地圖方向服務
- 8. 谷歌地圖方向圖標的
- 9. jQuery的谷歌地圖的方向
- 10. 谷歌地圖v3方向圖標
- 11. android:顯示谷歌地圖的方向
- 12. 谷歌地圖中的路由方向
- 13. Android的谷歌地圖V2方向
- 14. 谷歌地圖方向不透明
- 15. 方向服務谷歌地圖
- 16. 谷歌地圖Android V2和方向API
- 17. 谷歌靜態地圖與方向
- 18. 谷歌地圖安卓方向
- 19. 谷歌地圖方向輸入
- 20. 谷歌地圖方向半徑
- 21. 谷歌地圖方向線錯誤
- 22. 解析JSON方向谷歌地圖
- 23. 谷歌地圖放大方向後
- 24. 簡單谷歌地圖方向鏈接
- 25. 谷歌地圖方向lon/lat params
- 26. 谷歌地圖API提取方向
- 27. 谷歌地圖原生方向iphone MKMapView
- 28. 安卓谷歌地圖步行方向
- 29. 方向通過谷歌地圖
- 30. 谷歌地圖方向服務
http://www.whathaveyoutried.com – yinkou
指之間有兩個地方的方向該解決方案http://stackoverflow.com/a/7957736/864850 – Sahil