ios - 如何在 ios 中使用地址显示谷歌地图?

标签 ios objective-c xcode google-maps

我在我的应用程序中使用谷歌地图 iOS API 显示谷歌地图。我可以通过提供地点的 longitudelatitude 来显示 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/

相关文章:

ios - 无法删除 CloudKit 中的记录

ios - Objective-C 中是否有类似于 Java 中的 Netty 的机制,用于在传输层将 TCP 转移到 UDT 协议(protocol)

xcode - 如何摆脱 'Failed to get task for pid"错误?

javascript - 如何在访问时在文本字段中获取和插入用户的电话号码

ios - IAP需要刷新View Controller View

iphone - 拖动注解 View 导致多次触发拖动状态委托(delegate)方法

ios - Core Data 中可变和不可变托管对象模型有什么区别?

swift 和RAII : deinit behavior inconsistent between project and playground

Xcode调试器: cmd line application - start with sudo?

ios - 无法访问 AppStore 连接