@dialstack/sdk-dev / js/src / readLocalSearch
Function: readLocalSearch()
TypeScript
function readLocalSearch(text, kinds?): LocalSearchQuery | undefined;
Defined in: sdk/js/src/utils/number-search-input.ts:45
What a single location field holds: a three-digit area code (212,
(212)), a ZIP code (10001, 10001-1234), or a state or province, by its
name in any case and without its accents (quebec), its code (QC) or its
ISO 3166-2 code (CA-QC). undefined when the text names none of the
allowed kinds yet. A region code two countries share names neither.
Parameters
text
string
kinds?
readonly LocalSearchKind[] = ALL_KINDS
Returns
LocalSearchQuery | undefined