我在我的应用程序中使用谷歌地图 iOS API 显示谷歌地图。我可以通过提供地点的 longitude
和 latitude
来显示 map 。我正在使用以下代码来显示谷歌地图。
GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:-33.86
longitude:151.20
zoom:6];
mapView_ = [GMSMapView mapWithFrame:CGRectZero camera:camera];
mapView_.myLocationEnabled = YES;
self.view = mapView_;
// Creates a marker in the center of the map.
GMSMarker *marker = [[GMSMarker alloc] init];
marker.position = CLLocationCoordinate2DMake(-33.86, 151.20);
marker.title = @"Sydney";
marker.snippet = @"Australia";
marker.map = mapView_;
现在我想显示自定义地址的 map 。请告诉我该怎么做?
最佳答案
请参阅下面的链接,在您的代码中实现并尝试。它可能有助于解决您的问题。
https://developers.google.com/maps/documentation/geocoding/intro
关于ios - 如何在 ios 中使用地址显示谷歌地图?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32065264/