【问题标题】:How to find the GeoPoint coordinates of a city for an Android app如何为 Android 应用程序查找城市的 GeoPoint 坐标
【发布时间】:2011-11-17 00:12:15
【问题描述】:

如何找到全球各个城市的 GeoPoint 位置。 我正在尝试在我的 android 应用上加载地图,其中某些城市有一个 pin 覆盖项。

我正在关注 Google 的 android 教程中的示例,其中提到了墨西哥城和日本的位置。世界其他城市呢??

【问题讨论】:

    标签: android geolocation


    【解决方案1】:

    研究使用地理编码器。特别是Geocoder.getFromLocationName。

    一旦您获得Addresses 的列表,您就可以从这些地址中获得纬度和经度。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-07-12
      • 2023-03-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多