Postalcodes
Get a list of all Canadian postal codes within n km of any other postal code
Install / Use
/learn @ccnixon/PostalcodesREADME
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:
