Hello everyone,

I've been experimenting with Component 
Filtering<https://developers.google.com/maps/documentation/geocoding/index#ComponentFiltering>and
 I noticed a weird behaviour: geocoding an address with component 
filtering will give me a better result than without filters. The specific 
case I found was the address *Avenida de Almirante Reis, 61 C/V.D, Lisboa*, 
while using the filter *components=country:PT*.

Without component 
filtering<http://maps.googleapis.com/maps/api/geocode/json?address=Avenida%20de%20Almirante%20Reis,%2061%20C/V.D,%20Lisboa&sensor=false>I
 get a location_type 
APPROXIMATE, while with the 
filter<http://maps.googleapis.com/maps/api/geocode/json?address=Avenida%20de%20Almirante%20Reis,%2061%20C/V.D,%20Lisboa&components=country:PT&sensor=false>I
 get a location_type 
ROOFTOP.
(I thought of leaving pastebins with the answers the service gave me, but I 
do not know if that would be a violation of the ToS)

Now, I could be wrong, but are filters not supposed to *reduce* the answer 
set?

I'm not really interested on changing this behaviour, just on *understanding
* it.

Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-maps-js-api-v3+unsubscr...@googlegroups.com.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
Visit this group at http://groups.google.com/group/google-maps-js-api-v3.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to