Google geolocation gives coordinates for invalid addresses

1.1k views Asked by At

When using googles geolocation, sending in just random numbers or an address that does not exist, it still gives us an answer with a location somewhere.

Why does it give a location on an address that clearly does 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>
0

There are 0 answers