【问题标题】:how to extract coordinates from postal code in swift through API?如何通过API快速从邮政编码中提取坐标?
【发布时间】:2021-02-26 01:40:30
【问题描述】:

我被困在这里提取给定邮政编码的纬度和经度。谁能帮我解决这个问题?

【问题讨论】:

    标签: ios swift location latitude-longitude geocode


    【解决方案1】:

    您应该能够使用CLGeocoder 方法geocodePostalAddress(_:completionHandler:) 将仅包含邮政编码的地址转换为CLLocation

    有关使用它的信息,请参阅 Apple 在 CLGeocoder class reference 上的文档。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-04-05
      • 1970-01-01
      • 1970-01-01
      • 2010-10-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-18
      相关资源
      最近更新 更多