phone-number.db

added in 8.12.16-1

Cross-category databases and generators for phone-number.

calling-code-to-region

added in 8.12.16-1

Mapping of all supported calling codes (integer numbers) to their primary regions (sets of keywords).

calling-code-to-region-arg

added in 8.12.16-1

Mapping of all supported calling codes (integer numbers) to their primary regions (sets of keywords) which are valid as arguments. Be aware that this map does not contain :phone-number.region/world.

calling-code-to-regions

added in 8.12.16-1

Mapping of all supported calling codes (integer numbers) to regions (sets of keywords) they are assigned to.

calling-code-to-regions-arg

added in 8.12.16-1

Mapping of all supported calling codes (integer numbers) to regions (sets of keywords) they are assigned to and are valid as arguments. Be aware that this map does not contain :phone-number.region/world.

calling-code-to-regions-arg-vec

added in 8.12.16-1

(calling-code-to-regions-arg-vec region-code)

Returns a vector of phone number regions (which can be used as arguments) for the given calling code and caches the result.

calling-code-to-regions-vec

added in 8.12.16-1

(calling-code-to-regions-vec region-code)

Returns a vector of phone number types for the given calling code and caches the result.

calling-code-to-types

added in 8.12.16-1

Mapping of all calling codes (integer numbers) to sets of the supported phone number types (keywords). Please be aware that single country calling code may be used by more than one geographical region (e.g. 1 maps to US, Canada and more), making this database less precise for geographical location. In case of regional numbers consider using phone-number.db/region-to-types. This database will work precisely with non-geographical, global network calling codes.

calling-code-to-types-vec

added in 8.12.16-1

(calling-code-to-types-vec region-code)

Returns a vector of phone number types for the given calling code and caches the result.

calling-codes

added in 8.12.16-1

A set of all possible country calling codes.

calling-codes-args

added in 8.12.16-1

A set of all possible country calling codes (suitable to be used as arguments).

costs

added in 8.12.16-1

A set of all possible phone number cost classes as a set of keywords.

costs-args

added in 8.12.16-1

A set of all possible phone number cost classes as a set of keywords (suitable to be used as arguments).

country-codes

added in 8.12.16-1

A set of all possible country calling codes.

country-codes-args

added in 8.12.16-1

A set of all possible country calling codes (suitable to be used as arguments).

formats

added in 8.12.16-1

A set of all possible phone number formats as a set of keywords.

formats-args

added in 8.12.16-1

A set of all possible phone number formats as a set of keywords (suitable to be used as arguments).

generate-region-arg-for-calling-code

added in 8.12.16-1

(generate-region-arg-for-calling-code)(generate-region-arg-for-calling-code calling-code)(generate-region-arg-for-calling-code calling-code rng)

Generates a random region code (keyword) which is suitable as an argument for the given calling code.

generate-region-for-calling-code

added in 8.12.16-1

(generate-region-for-calling-code)(generate-region-for-calling-code calling-code)(generate-region-for-calling-code calling-code rng)

Generates random region code (keyword) for the given calling code.

generate-type-arg-for-calling-code

added in 8.12.16-1

(generate-type-arg-for-calling-code)(generate-type-arg-for-calling-code calling-code-or-random)(generate-type-arg-for-calling-code calling-code rng)

Generates a random number type which is valid for the given region and suitable to be used as an argument. Works for non-geographical numbers (global network calling codes), doesn’t work well for country calling codes.

generate-type-arg-for-region

added in 8.12.16-1

(generate-type-arg-for-region)(generate-type-arg-for-region region-code-or-random)(generate-type-arg-for-region region-code rng)

Generates a random number type which is valid for the given region and can be used as an argument. Works for geographical numbers, doesn’t work for :phone-number.region/world.

generate-type-for-calling-code

added in 8.12.16-1

(generate-type-for-calling-code)(generate-type-for-calling-code calling-code-or-random)(generate-type-for-calling-code calling-code rng)

Generates a random number type which is valid for the given region. Works for non-geographical numbers (global network calling codes), doesn’t work well for country calling codes.

generate-type-for-region

added in 8.12.16-1

(generate-type-for-region)(generate-type-for-region region-code-or-random)(generate-type-for-region region-code rng)

Generates a random number type which is valid for the given region. Works for geographical numbers, doesn’t work for :phone-number.region/world.

generate-type-for-region-arg

added in 8.12.16-1

(generate-type-for-region-arg)(generate-type-for-region-arg region-code-or-random)(generate-type-for-region-arg region-code rng)

Generates a random number type which is valid for the given region (taken from the region codes which are suitable to be used as arguments). Works for geographical numbers, doesn’t work for :phone-number.region/world.

leniencies

added in 8.12.16-1

A set of all possible phone number leniencies as a set of keywords.

leniencies-args

added in 8.12.16-1

A set of all possible phone number leniencies as a set of keywords (suitable to be used as arguments).

locales

added in 8.12.16-1

A set of all possible phone number locales as a set of keywords.

locales-args

added in 8.12.16-1

A set of all possible phone number locales as a set of keywords (suitable to be used as arguments).

match-types

added in 8.12.16-1

A set of all possible phone number match types as a set of keywords.

match-types-args

added in 8.12.16-1

A set of all possible phone number match types as a set of keywords (suitable to be used as arguments).

net-codes

added in 8.12.16-1

A set of all possible global network calling codes.

net-codes-args

added in 8.12.16-1

A set of all possible global network calling codes (suitable to be used as arguments).

region-arg-to-calling-code

added in 8.12.16-1

Mapping of all supported regions (keywords) which are valid as arguments to their primary calling codes (integer numbers). Be aware that this map does not contain :phone-number.region/world.

region-arg-to-calling-codes

added in 8.12.16-1

Mapping of all supported regions (keywords) which are valid as arguments to their calling codes (sets of integer numbers). Be aware that this map does not contain :phone-number.region/world.

region-arg-to-types

added in 8.12.16-1

Mapping of all regions (keywords) which are valid as arguments to supported phone number types (sets of keywords). Please be aware that this map does not contain :phone-number.region/world pseudo-region.

region-arg-to-types-vec

added in 8.12.16-1

(region-arg-to-types-vec region-code)

Returns a vector of phone number types for the given region (which must be suitable to be used as an argument) and caches the result.

region-to-calling-code

added in 8.12.16-1

Mapping of all supported regions (keywords) to their primary calling codes (integer numbers).

region-to-calling-codes

added in 8.12.16-1

Mapping of all supported regions (keywords) to their calling codes (sets of integer numbers).

region-to-types

added in 8.12.16-1

Mapping of all regions (keywords) to supported phone number types (sets of keywords). Please be aware that the :phone-number.region/world pseudo-region groups many calling codes which can vary when it comes to the supported types, hence making this database less precise. To get more granular data for global numbers which are not geographical, please use phone-number.db/calling-code-to-types. For geographical regions this database will be precise.

region-to-types-vec

added in 8.12.16-1

(region-to-types-vec region-code)

Returns a vector of phone number types for the given region and caches the result.

regions

added in 8.12.16-1

A set of all possible phone number region codes.

regions-args

added in 8.12.16-1

A set of all possible phone number region codes (suitable to be used as arguments).

type-to-calling-codes

added in 8.12.16-1

Mapping of all the supported phone number types (keywords) to sets of calling codes (integer numbers). Please be aware that single country calling code may be used by more than one geographical region (e.g. 1 maps to US, Canada and more), making this database less precise for geographical location. In case of regional numbers consider using phone-number.db/type-to-regions. This database will work precisely with non-geographical, global network calling codes.

type-to-regions

added in 8.12.16-1

Mapping of all supported phone number types (keywords) to regions (sets of keywords). Please be aware that the :phone-number.region/world pseudo-region groups many calling codes which can vary when it comes to the supported types, hence making this database less precise. To get more granular data for global numbers which are not geographical, please use phone-number.db/type-to-calling-codes. For geographical regions this database will be precise.

type-to-regions-arg

added in 8.12.16-1

Mapping of all supported phone number types (keywords) to regions (sets of keywords) which are valid as arguments. Please be aware that this map does not contain :phone-number.region/world pseudo-region within its values.

types

added in 8.12.16-1

A set of all possible phone number types as a set of keywords.

types-args

added in 8.12.16-1

A set of all possible phone number types as a set of keywords (suitable to be used as arguments).

tz-formats

added in 8.12.16-1

A set of all possible time zone formats as a set of keywords.

tz-formats-args

added in 8.12.16-1

A set of all possible time zone formats as a set of keywords (suitable to be used as arguments).