Xbasic

zipcodeinfo Function

Syntax

Result as P = zipcodeinfo(zip5 as C)

Arguments

zip5Character

A 5 digit zip code.

Returns

ResultPointer

Returns information about the zip code in a dot variable with the following properties:

cityCharacter

The name of the city.

stateCharacter

The name of the state.

area_codeCharacter

The area code for the specified zip code.

time_zoneCharacter

The timezone for the specified zip code.

zipCharacter

The zip code.

Description

Returns a dot variable with info about a 5 digit zip code.

Discussion

The zipcodeinfo() function looks up location information for the specified 5-digit US zip code.

Example

? zipcodeinfo("90210")
= area_code = "310"
city = "Beverly Hills"
state = "CA"
time_zone = "P"
zip = "90210"