如何将GPS坐标转换为地址?
如何在 Android 或 Php 上将 GPS 坐标(纬度和经度)转换为地址?
我的程序应该从给定的坐标获取地址。例如:
坐标:41.011576, 28.984852 -->地址 : Cankurtaran Mh., Kennedy Cd, Istanbul, Türkiye
我希望你能帮助我..
Possible Duplicate:
Reverse Geocoding With Google Map API And PHP To Get Nearest Location Using Lat,Long coordinates
How to convert gps coordinates ( latitude&longitude ) to address on Android or Php ?
My program should get address from given coordinates. For example :
Coordinates : 41.011576, 28.984852 --> Address : Cankurtaran Mh., Kennedy Cd, Istanbul, Türkiye
I hope, you can help me..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Geocoder
类可以为 Android 执行您想要的操作。您可以使用getFromLocation
您可以这样做:您可能需要进行修改,例如如果您想要多个位置,则使用
getFromLocation
中的 1,或者使用 < code>address.getAddressLine 您可能想要获取多行。您需要将其放在
try {}
块中并在工作线程中执行。The
Geocoder
class can do what you want for Android. You would usegetFromLocation
You would do it as so:You may want to make modifications, such as the 1 in
getFromLocation
if you want more than one location, or with theaddress.getAddressLine
you may want to get more than one line.You will want to put it within a
try {}
block and do it in a worker thread.Google 反向地理编码是您的朋友:http://code.google.com/apis/maps /文档/地理编码/
Google reverse geocoding is your friend: http://code.google.com/apis/maps/documentation/geocoding/