zipinfo
ZIP
,
ZIPINFO

The zipinfo statement queries the web to obtain information about a zip code.


Parameters

This statement has two parameters:

zip – Five digit zip code.

zipinfo – field or variable that will be filled with a dictionary containing information about the zip code (see discussion below).


Description

This statement queries the web to obtain information about a zip code. The information is returned in a dictionary that will contain one or more of the values listed below:

CITY ☞ The primary name of the city associated with this zip code
STATE ☞ Name of the state this zip code is in
COUNTY ☞ Name of the county associated with this zip code
FIPS ☞ FIPS code
AREACODE ☞ Primary area code associated with this zip code
TIMEZONE ☞ Time zone
DAYLIGHTSAVINGS ☞ Yes/No
LATITUDE ☞ Geographic co-ordinates of center of zip code
LONGITUDE ☞ Geographic co-ordinates of center of zip code
MSA ☞ Metropolitan statistical area

This example displays the city and state associated with a zip code

local z5,zinfo
z5=""
gettext "Zip Code:",z5
zipinfo z5,zinfo
message z5+": "+getdictionaryvalue(zinfo,"CITY")+", "+getdictionaryvalue(zinfo,"STATE")

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama.