0

I am doing "Address Validation". My Address table has "Street Address", "City", "State", "Postal Code", "Country". I am using Google MAP API to validate my address.

I gave my address like

  1. Street Address -- "kajhfkjdhfkjdsh"
  2. City -- ksjfdlsjflsdjflk
  3. State -- AP
  4. PostalCode -- 500087
  5. Country -- India

In this example only State, PostalCode, Country are valid and the remaining fields are invalid. But when I use the Google Map's API its saying its a valid address. But the street address and city are invalid. So as per my observation the address validation is done only based on 3 fields those are (State, Postal Code, Country). So How can I validate Street and city along with the remaining fields with GOOGLE MAPS API?

Or is there any way/other (API) to validate all the fields in my address table.

Can anyone help me on this. I am stuck over here.

4

1 回答 1

0

当使用谷歌地理编码服务http://maps.googleapis.com/maps/api/geocode/xml?sensor=false&address=kajhfkjdhfkjdsh,ksjfdlsjflsdjflk,AP,500087,India尝试此地址时,我看到结果是类型postal_code,partial_match 是设置为真。

尝试真实地址,我得到结果类型,street_address并且partial_match标志丢失。

建议你做一些测试,看看服务结果的内容。这是一项地理编码服务,因此它旨在为您提供一个指向地图的位置,而不是验证地址。

于 2013-10-03T13:59:06.013 回答