【发布时间】:2017-04-15 07:28:07
【问题描述】:
当我尝试反转 somewhere in the South Atlantic Ocean 的坐标时,
let geocoder = GMSGeocoder.init()
let coordinate = CLLocationCoordinate2D.init(
latitude: -33.724339999999998,
longitude: -15.996094000000001)
geocoder.reverseGeocodeCoordinate(coordinate) { (response, error) in
print(response)
})
致命错误:在展开可选值时意外发现 nil
是的,我不希望得到响应,但它不应该因致命错误而失败,对吗?
这是GMSGeocoder 的正常行为吗?
【问题讨论】:
标签: google-maps google-maps-sdk-ios google-geocoder reversegeocodelocation