Avalara Developer Network Developer communications

Chapter 5.24 - Geocode Requests

Geocode Requests

The geocodeRequests object contains a list of street addresses and/or latitude/longitude coordinate pairs to geocode within the GeocodeRequest object.

Geocode Request

The geocodeRequest object contains the input data to geocode:

Note

Only address information or latitude/longitude coordinates should be provided in the request, but not both.

Key Value
ref [string] Reference ID
Optional Reference ID for the geocode request
cass [bool] CASS Validated Address
Indicates if the CASS validated address is desired in the results.
  • true: Return the CASS validated address in the results
  • false: Do not return the CASS validated address
lat [double] Latitude
Latitude for geocoding based on lat/long coordinates
long [double] Longitude
Longitude for geocoding based on lat/long coordinates
addr [string] Street address
city [string] City name
st [string] State name or abbreviation
zip [string] Postal Code


Example

[
  {
    "ref": "Address Request",
    "cass": true,
    "addr": "255 S. King St.",
    "city": "Seattle",
    "st": "WA",
    "zip": "98104"
  },
  {
    "ref": "Lat/Long Request",
    "lat": 35.991130741436415,
    "long": -78.90267307450108
  }
]