Standardizer
Command Description
Standardize addresses, support inputting multiple addresses separated by \ n, and return an array
Command Prototype
arrayRet = Mage.NLPAddressStandard(address,config,time)
Command parameter
parameter | mandatory | type | default value | Instructions |
---|---|---|---|---|
address | True | expression | "" | The information of the address to be standardized supports inputting multiple addresses separated by \ n |
config | True | expression | {} | Laiye Intelligent Document Processing Call Configuration |
time | True | number | thirty thousand | Specify the waiting time (in milliseconds), and if it exceeds this time, an exception will be raised. Default 30000 milliseconds (30 seconds) |
Return result
ArrayRet, Assign the result of running the command to this variable.
Run instance
/********************** Address Standardization **********************
Command Prototype:
arrayRet = Mage.NLPAddressStandard("", {}, 30000)
Input Parameters:
address -- Address to be standardized
config -- Mage configuration, requires Pubkey and Secret. Type: Dict
timeout -- Timeout duration. Default unit: milliseconds. Type: Int
Output Parameters:
arrayRet -- Variable to store the output of the function call
Important Notes:
Requires obtaining the corresponding Key/Secret and URL for Mage
****************************************************/
Dim address = "Shanghai City, Pudong New Area, Zhangjiang Town" // Address to be standardized
Dim arrayRet = "" // Output result
arrayRet = Mage.NLPAddressStandard(address, {"Pubkey": "KJ55tRgUjGxJAJ20SzpNtza0", "Secret": "urfWfYHwQhyR8uVkpTWhjjEX6gpZKRyg", "Url": "https://mage.uibot.com.cn"}, 30000)
TracePrint(arrayRet)