Skip to main content
Version: v6.5.0

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

parametermandatorytypedefault valueInstructions
addressTrueexpression""The information of the address to be standardized supports inputting multiple addresses separated by \ n
configTrueexpression{}Laiye Intelligent Document Processing Call Configuration
timeTruenumberthirty thousandSpecify 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)