/postal-codes

Postal code lookup service

Primary LanguageTypeScript

Postal Codes

Where I figure out postal code parsing.

Data Sources

  • ODA: Quebec specific Canadian postal code data. (Huge and not super helpful.)
  • zip_code_database.csv: US Zip Code Data (from )
  • US
  • CA
    • Also CA full
    • The CA.txt file contains entries for three character postal codes

Format

TSV files with the following fields:

  • country code
  • postal code
  • place name
  • admin name 1 (state)
  • admin code 1
  • admin name 2 (county/province)
  • admin code 2
  • admin name 3 (community)
  • admin code 3
  • latitude (estimated)
  • longitude (estimated)
  • accuracy
    • 1: estimated
    • 4: geonameid
    • 6: centroid of address or shape

Random Number Generator

From