Re: Looking everywhere for VBA to do reverse geocoding, not just for address
Quote from Trebor76;784869
So from that xml file what are the neighborhood and sublocality names you need?
The User Defined Function (UDF) bryce mentions in thread 6 is using that URL so that is part of the solution I would imagine. This thread might also help.
Trebor76, in the next xml: https://maps.googleapis.com/ma…TKgfJAeQSlETDadjoQHsXBF6Y
You can find neigborhood and sublocality_level_1 marked in green here
<address_component>
<long_name>Emaus</long_name>
<short_name>Emaus</short_name>
<type>neighborhood</type>
<type>political</type>
</address_component>
<address_component>
<long_name>Chapinero</long_name>
<short_name>Chapinero</short_name>
<type>political</type>
<type>sublocality</type>
<type>sublocality_level_1</type>
</address_component>
But in the link you shared which can be really helpfull I found that sublocality_level can go through one to 5. "sublocality indicates a first-order civil entity below a locality. For some locations may receive one of the additional types: sublocality_level_1 through to sublocality_level_5. Each sublocality level is a civil entity. Larger numbers indicate a smaller geographic area."
So I know now my need is: Neigborhood, locality, sublocality_level_1, sublocality_level_2, sublocality_level_3, sublocality_level_4 and sublocality_level_5, administrative_area_level_1, administrative_area_level_2, administrative_area_level_3, administrative_area_level_4 and administrative_area_level_5
In the next code you will see an example of sublocality_level_1, locality, administrative_area_level_3 and administrative_area_level_1 From a Hotel in Mexico City: https://maps.googleapis.com/ma…TKgfJAeQSlETDadjoQHsXBF6Y
<address_component>
<long_name>Portales Norte</long_name>
<short_name>Portales Nte</short_name>
<type>political</type>
<type>sublocality</type>
<type>sublocality_level_1</type>
</address_component>
<address_component>
<long_name>Ciudad de México</long_name>
<short_name>México D.F.</short_name>
<type>locality</type>
<type>political</type>
</address_component>
<address_component>
<long_name>Benito Juárez</long_name>
<short_name>Benito Juárez</short_name>
<type>administrative_area_level_3</type>
<type>political</type>
</address_component>
<address_component>
<long_name>Ciudad de México</long_name>
<short_name>CDMX</short_name>
<type>administrative_area_level_1</type>
<type>political</type>
</address_component>
So conslusion:
1. What I needed before got bigger, sorry for that but your link really helped 
2. Not all cities shows the same data so the macro must be good to ignore missing information.
3. Google takes up to 2,500 free requests per day which is fine by me.
Check out this nice url: https://developers.google.com/…cript/geocoding?hl=es-419
Appreciate a lot your help.