Google 地图 - 验证地址

Google Maps - Validate Address

我正在尝试使用 Google 地图验证地址,我意识到当地址可能有误时,响应有一个 partial_match。如果地理编码方法的 json 响应具有 partial_match 属性,则拒绝该地址是否正确?

谢谢!

根据 Google 地图文档:

partial_match indicates that the geocoder did not return an exact match for the original request, though it was able to match part of the requested address. You may wish to examine the original request for misspellings and/or an incomplete address.

所以是的,return 可能是错误的,因此将此回复视为完全可信的回复可能不是一个好主意。想象一下,您已经构建了一个 GPS 应用程序,并且正在将人们发送到错误的地址。不会好的。