0

googles geolocation을 사용하여 존재하지 않는 임의의 숫자 또는 주소로 보내면 위치 어딘가에 대한 답을 얻을 수 있습니다.Google geolocation은 잘못된 주소에 대한 좌표를 제공합니다.

분명히 존재하지 않는 주소의 위치를 ​​제공하는 이유는 무엇입니까?

예.

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

결과

<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> 
+2

주어진 입력에 가장 잘 맞는 것을 찾는 것은 [지오 코더] (https://developers.google.com/maps/documentation/javascript/geocoding#Geocoding)의 작업입니다. 주소 유효성 검사기가 아닙니다 (사람이 주소 검사기로 사용하려고 시도했지만). – geocodezip

+1

' APPROXIMATE'유형의 위치를 ​​무시하고 결과를보고 해당 국가와 동일한 지 확인할 수 있습니다. – geocodezip

답변

0

당연히 의견에 언급 된 사용자 geocodezip는 '주소 확인 주소 지오 코딩과는 다른 개념이기 때문에. 그러나 한 번에 두 기능을 수행 할 수있는 도구가 있습니다. 예를 들어 제가 일하는 회사는 YAddress을 만듭니다. 주소를 확인하고 하나의 호출로 지오 코드를 지정합니다.

관련 문제