ZipToCityState
Endpoints
Contributed Clients What is this? Add / Edit / Delete Client
Detailed Description
Retrieves valid City+State pairs for a given US Zip Code. Or,
retrieves longitude and latitude for a given US zipcode. Also
retrieves zipcodes for a given City+State pair. See home page for
source code of the ASP.NET implementation as well as source for
Java clients (GLUE, AXIS, WASP; command line and Swing), and a C#
client.
Usage Notes
Accepts HTTP-GET, HTTP-POST and SOAP
String[] ZipToCityAndState(String zip)
Returns list of city names for the given zipcode.
Eg, passing "90210" returns "Beverly Hills CA". Some zipcodes have
multiple valid city names, so the result is delivered as an
ArrayOfString.
String[] CityToZip(String city)
likewise, there is a one-to-many mapping between city name and
zipcode.
LongLat ZipToLongLat(String zip)
retrieves a struct containing longitude and latitude (formatted as
doubles) for a given zipcode.
Help Message Board