There is no "easy way" to get the actual Zip Code of the user. You
could use the reverse geocoder function to do this but it doesn't
always return the Zip Code, nor is it always accurate. Either way,
you'll have to have location services and internet access active in
order to do it.

One way you could do it without internet service would be to load the
database of Zip Code centroids onto the phone itself and use the
location to find the closest one but this method will only give you
the closest centroid, not the actual Zip Code. It may be good enough
for your purpose though.

The only sure way to determine the Zip Code of the user is to use a
point in polygon analysis on a Zip Code polygon database. Since such a
database is huge, the only way to do this is by using a web service. I
have an app that does this, it's called "What Zip Code?" and is
available free in the Android market.

-John Coryat

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to