获取利用GPS的Andr​​oid邮编code [英] Getting Zipcode using GPS android

查看:245
本文介绍了获取利用GPS的Andr​​oid邮编code的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个应用程序,我需要用GPS找到拉链code。谁能帮我在这方面?

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

推荐答案

考虑使用地理$ C $铬。具体来说<一个href=\"http://developer.android.com/reference/android/location/Geo$c$cr.html#getFromLocation%28double,%20double,%20int%29\"><$c$c>Geo$c$cr.getFromLocation.

Look into using Geocoder. Specifically Geocoder.getFromLocation.

一旦你得到地址(ES)的列表,你可以得到的zip $ C从使用这些地址(ES)的<$c$c>Address.getPostal$c$c.

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

这篇关于获取利用GPS的Andr​​oid邮编code的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆