Maptitude GISDK Help

Standardize()

Summary

Converts an address string into a normalized form for address matching, according to a file of transformation rules.

 

Changes

Regex rules and queens numbers options added in Version 6.0/2012.

 

Syntax

std = Standardize(string input, string rules_file, array options)

 

Argument

Contents

input

The address string to be standardized

rules_file

The path name of the transformation rules file; if null, Maptitude  uses regex_rules, if provided, else the supplied file Caliper.ruL

 

Option

Type

Contents

queens numbers

Boolean

"True" if the input street address has Queens-style numbers (e.g.: 12-345), otherwise "False" (default)

regex rules

Array

Regular expression rules from a "RegEx" object

 

Returns

An options array with the names of the elements of the address and their values as strings. The possible elements are:

 

Element

Description

STDNUMBER

Standardized street number; suffix letters are removed

STDNAME

Standardized street name

POSTADDRESS

Items after the street name such as apartment number, floor, building, etc.

STDSTRT1

Standardized street name for first intersection street

STDSTRT2

Standardized street name for second intersection street

 

Notes

Element

Description

Caliper.rul

For street addresses in the U.S.

Num_str.rul

For addresses with the street number followed by the street name

Str_Num.rul

For addresses with the street name followed by the street number

Examples

std = Standardize("123a no main street", )

// std.STDNUMBER = "123"

// std.STDNAME = "N MAIN ST"

 

rx = CreateObject("RegEx","{[0-9]+}:(STDNUMBER) {[a-z ]+}:(STDNAME)")

parsed = Standardize("123 MAIN STREET",null,rx.GetRules())

// parsed is the option array: {{"STDNUMBER","123"},{"STDNAME","MAIN STREET"}}

 

See Also

Function

Summary

StandardizeView()

Standardizes address strings in a view and writes the results to a table

 

 

©2025 Caliper Corporation www.caliper.com