Getting Zipcode using GPS android [closed]

╄→гoц情女王★ 提交于 2019-12-10 10:27:22

问题


I am developing an application where I need to find zipcode using GPS. Can anyone help me in this regard?


回答1:


Look into using Geocoder. Specifically Geocoder.getFromLocation.

Once you get the List of Address(es) you can get the zip code from those Address(es) using Address.getPostalCode.




回答2:


Just ask for a location using the LocationManager and then use the received location to send a reverse geocoding request with Geocoder.



来源:https://stackoverflow.com/questions/8375884/getting-zipcode-using-gps-android

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!