ios - 如何从谷歌地图的 gms 标记获取地址?

标签 ios google-maps gmsmapview

如何通过这种方法获得经纬度?

- (void)mapView:(GMSMapView )mapView didEndDraggingMarker:(GMSMarker )marker;

我想在调用 didEndDraggingMarker 时获取地址..

最佳答案

您可以从marker.position 获取latitudelongitude。使用反向地理编码获取位置的地址

关于ios - 如何从谷歌地图的 gms 标记获取地址?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29917469/

相关文章:

ios - 使用 dequeueReusableCellWithIdentifier :forIndexPath:? 时的新单元格或现有单元格

ios - 将相机移动到底部 GMSMapView IOS

ios - Xcode - unicode 字符 MD 未出现在模拟器中

iOS 应用程序 Spotlight 搜索不会出现在应用程序上

ios - 如何在 Swift3 中更改 UITextView 中文本字符串的颜色

google-maps - 获取 v2 Google map API key

javascript - 如何将 Rails 数据传递给 JavaScript?

c++ - 将 Google map 与 C++ 程序集成

ios - 无法识别 GMSMapView 中 subview 上的手势

swift - 位置管理器在 gmsMapView swift 4.2 中显示错误位置