【发布时间】:2014-06-06 09:55:22
【问题描述】:
嗨,在我的应用程序中,我已经集成了谷歌地图,现在我想给出从当前位置到目的地点的导航方向,请告诉我如何实现这一目标。
我的代码。
GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:12.9259
longitude:77.6229
zoom:6];
mapView = [GMSMapView mapWithFrame:CGRectZero camera:camera];
mapView.myLocationEnabled= NO;
self.view = mapView;
GMSMarker *marker = [[GMSMarker alloc] init];
marker.position = CLLocationCoordinate2DMake(12.9259, 77.6229);
marker.title = @"Hello World";
marker.snippet = @"bangalore";
marker.map = mapView;
上面的代码我用来指向我的目的地点的制造商,请告诉我如何添加导航方向,我已经卡在这里很长时间了,请帮帮我。
谢谢。
【问题讨论】:
标签: ios iphone google-maps ios6 google-maps-sdk-ios