سؤال

Can the Geocoder class provide reverse lookups outside of the United States? I basically want to know what country my user is in (for law stuff).

http://developer.android.com/reference/android/location/Geocoder.html

If it can't, is there another way of determining this?

Thanks

هل كانت مفيدة؟

المحلول

I have tested Geocoding before in Poland, so I would say it should work outside the USA. I think it will work everywhere where Google Maps API geocoding works. Here is a list of locations where it works, however I don't know if it is outdated. You could also get the user's country by using his/her IP address, but probably this will require more work.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top