Parse Address

Note: 

  • Each time the Parse Address task is executed, it triggers an API request to the back-end. This call is deducted from the external calls limit available for the service from which the task is executed, based on your pricing plan.
  • Only actual executions that receive a response are counted, not the number of times the task appears in the script. For example, if Parse Address task is placed inside a for each task that iterates five times, the number of external API calls consumed will be five, even though the task appears only once in the script.

Description

The zoho.ai.parseAddress ask is used to split the given address into individual components, such as: road, house, city, and district.

Note: 

  • This task only supports English.
  • The maximum allowed character length is 50000.
  • The prediction results may not be accurate, which is also the case with any AI prediction. However, we are working on making it better.
  • The prediction results are dynamic. The same script may produce different outcomes at different times based on how much the machine has learned.

Syntax

<response> = zoho.ai.parseAddress(<address>);

where:

ParamsData typeDescription
<response>KEY-VALUESpecifies the individual components of an address and the status of the executed task
<address>TEXT / LISTSpecifies the addresses that need to be examined

Example 1

The following script analyzes the given address and divides it into individual components.

 response = zoho.ai.parseAddress("Estancia IT Park, GST Road, Vallancherry Village, Chengalpattu, Kanchipuram district, Tamil Nadu 603202");

where:

response

The KEY-VALUE response that represents the individual components of the address, and the status of the executed task. 

Here, the individual components returned are:

  • "road": "gst road vallancherry village"
  • "city": "chengalpattu"
  • "state_district": "kanchipuram district"
  • "postcode": "603202"
  • "state": "tamil nadu"
  • "house": "estancia it park"
"Estancia IT Park, GST Road, Vallancherry Village, Chengalpattu, Kanchipuram district, Tamil Nadu 603202"
The TEXT that represents the address that needs to be examined.

Example 2

The following script analyzes the list of addresses and divides it into individual components.

 address_var = List();
 address_var.add("Estancia IT Park, GST Road, Vallancherry Village, Chengalpattu, Kanchipuram district, Tamil Nadu 603202");
 address_var.add("6800 Burleson Rd Building 310, Suite 200, Austin, TX 78744, USA");
 
 response = zoho.ai.parseAddress(address_var);

where:

address_var
The LIST variable that holds the addresses that need to be examined.

Response Format

Success Response

  • The success response returned will be returned in the following format.

     {
     "data": {
     "items": [
     {
     "road": "gst road vallancherry village",
     "city": "chengalpattu",
     "state_district": "kanchipuram district",
     "postcode": "603202",
     "state": "tamil nadu",
     "house": "estancia it park"
     },
     {
     "country": "usa",
     "unit": "suite 200",
     "road": "burleson rd building",
     "city": "austin",
     "postcode": "78744",
     "house_number": "310",
     "state": "tx"
     }
     ]
     },
     "message": "OK",
     "status": 200
     }

     

    Failure Response

    • The failure response returned for an empty address value will be in the following format:

       {
       "message": "EMPTY_VALUE_NOT_ALLOWED",
       "status": 400
       }

     

    Related Links