Google geolocation gives coordinates for invalid addresses -


when using googles geolocation, sending in random numbers or address not exist, still gives answer location somewhere.

why give location on address not exist?

example.

http://maps.googleapis.com/maps/api/geocode/xml?address=sdfsdfsdfsdf%209999999%20ghkhkgh&components=country:se&sensor=false

result

<result>   <type>country</type>   <type>political</type>   <formatted_address>sweden</formatted_address>   <address_component>     <long_name>sweden</long_name>     <short_name>se</short_name>     <type>country</type>     <type>political</type>   </address_component>   <geometry> <location>   <lat>60.1281610</lat>   <lng>18.6435010</lng> </location> <location_type>approximate</location_type> <viewport>   <southwest>     <lat>55.3367024</lat>     <lng>10.9683721</lng>   </southwest>   <northeast>     <lat>69.0599709</lat>     <lng>24.1660240</lng>   </northeast> </viewport> <bounds>   <southwest>     <lat>55.3367024</lat>     <lng>10.9631866</lng>   </southwest>   <northeast>     <lat>69.0599709</lat>     <lng>24.1668093</lng>   </northeast> </bounds>   </geometry>   <partial_match>true</partial_match> </result> 

as user 'geocodezip' rightly mentioned in comments, address validation different concept address geocoding. however, there tools available perform both functions @ once. example, company work makes yaddress, both validates address , geocodes in 1 call.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -