Hi, all,
I searched on the internet for solutions to this kind of problem, but I
failed to find the solution.
What I am originally trying to achieve is get the 2-letter country code
from latitude and longitude, and then I have this problem
<http://stackoverflow.com/questions/37474730/address-class-getcountrycode-method-returns-digits?noredirect=1#comment62448442_37474730>
.
Trying to get work around this issue, I decide to parse the addresslines in
the Address which I got from Geocoder(addresslines like:
"Niger(NE)_Agadez"),
so I can still get the 2-letter country code happily... and no luck...
because I have issues like this
<http://stackoverflow.com/questions/14889607/why-am-i-getting-location-details-in-local-language>
.
I can't find any good solution for this kind of problem...because it
simple return the address with local locale, something like the followings:
[addressLines=[0:"北京市朝阳区太阳宫南街7号院",1:"国展新座",2:"土星园",3:"世纪华联超市0911分店",4:"太阳宫南街7号院",5:"圣馨家园",6:"丰和园",7:"火星园",8:"悠然棋牌室",9:"译夫宾馆",10:"朝阳区太阳宫地区办事处"],feature=null,admin=北京市,sub-admin=null,locality=北京市,thoroughfare=太阳宫南街,postalCode=null,countryCode=131,countryName=中国,hasLatitude=true,latitude=39.97934128362307,hasLongitude=true,longitude=116.44797454549584,phone=null,url=null,extras=null]
I still can't get the country code...Could anyone please tell me how to
solve problems like this ?
Many Thanks,
--
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-developers/cb3aed34-e171-4ea3-9848-7adf348b96fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.