SkillAgentSearch skills...

Postalcodes

Get a list of all Canadian postal codes within n km of any other postal code

Install / Use

/learn @ccnixon/Postalcodes
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

postalcodes

Given a 6 character Canadian postal code and a radius in kilometers, postalcodes will ouput all canadian postal codes within the given radius.

System requirements

postalcodes requires the Go programming language. Please visit the Go project website for installation instructions: https://golang.org/doc/install

Installation

$ git clone https://github.com/ccnixon/postalcodes
$ cd postalcodes
$ go install

Usage

postalcodes takes a 6 character Canadian postal code and a radius in kilometers as arguments. The arguments can be passed in as flags as such:

$ postalcodes -p=<POSTAL_CODE> -r=<RADIUS>

The default arguments are M4W2L4 and 3 respectively. Running postalcodes without any arguments would thus be equivalent to:

$ postalcodes -p=M4W2L4 -r=3

The output of the program will be a csv file called 'results.csv'

Run $ postalcodes -h for help.

Data Source

The program relies on this csv:

CSV of Canadian Postal Codes

View on GitHub
GitHub Stars14
CategoryDevelopment
Updated2mo ago
Forks6

Languages

Go

Security Score

75/100

Audited on Jan 3, 2026

No findings