Issue
I need to check the name of some Spanish locations according to android.location.Address to know if the backend of my app will be able to process them out-of-the-box or if some work is going to be needed.
In Spain there are 4 official languages (Spanish, Galician, Basque, Catalan) and locations belonging to the regions of the later three may have names in both Spanish and their regional language, so I need to make sure what I'll be getting if I use Address to get the locations names.
Is there some site where I can check this?
Thanks in advance.
EDIT: This is one of the elements in the array returned by google geocoding API (which, I assume, is the one used by android.location classes).
{
"long_name" : "Rúa da Batundeira",
"short_name" : "Rúa da Batundeira",
"types" : [ "route" ]
},
{
"long_name" : "Orense",
"short_name" : "Orense",
"types" : [ "locality", "political" ]
},
{
"long_name" : "Ourense",
"short_name" : "Ourense",
"types" : [ "administrative_area_level_2", "political" ]
},
{
"long_name" : "Galicia",
"short_name" : "GA",
"types" : [ "administrative_area_level_1", "political" ]
},
{
"long_name" : "España",
"short_name" : "ES",
"types" : [ "country", "political" ]
},
{
"long_name" : "32960",
"short_name" : "32960",
"types" : [ "postal_code" ]
}
],
Please, notice that "locality" here is "Orense" (Spanish name) and "administrative_area_level_2" is "Ourense" (Galician name for the same place).
Is there a way where I can check a full list instead of processing every locality through google geocoding API?
Solution
In the end I typed them all and wrapped them in this class & resources files https://github.com/alberovalley/GeografiaSpain The class has methods that return arrays of Strings with the data as you need it.
Answered By - Frank
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.