Validating Addresses

To validate user-entered address information, you can query the Gooten API. API will return a score of the entered address, and a suggested address - a valid address that most closely matches the user-entered address.

Example:

This request yields following response:

{
  "IsValid": true,
  "Reason": "",
  "ProposedAddress": {
    "StreetLines": [
      "12 W 29TH ST"
    ],
    "City": "NEW YORK",
    "PostalCode": "10001-4516",
    "StateOrProvinceCode": "NY",
    "CountryCode": "US"
  },
  "Score": 100
}

Next Topic: Getting Localized Strings