Hi.
Iām Chris Pilkington, a something year old software engineer and a happily married father of 2. I enjoy using Linux, C++, OpenGL and Git. In my free time I tend to play videogames, program videogames, and write software of dubious value. This sort of thing will commonly be written about here.
Email: <firstname>.<lastname>@gmail.com
Hi,
How do I make the code on https://github.com/pilkch/postcodes/ generate the kml file for postcodes in New Zealand?
Hi Ollie,
This is what I did:
sudo yum install git java ant (Or “sudo apt-get install git java ant” in Ubuntu)
git pull https://github.com/pilkch/postcodes.git
cd postcodes/
ant build
ant Application
If everything worked, there will now be these files in your postcodes folder:
points_au.kml
points_nz.kml
points_nz2.kml
No idea if they are correct for New Zealand, I only checked the center of Canberra, Australia and it looked pretty accurate. New Zealand is also split into 2 because there are 43,000 vs 16,000 in Australia and Google had a 10MB limit on kml file uploads last time I checked.
Good luck! If you have any problems don’t hesitate to ask.
Sorry, I’m new to github and the associated programming. Could you dumb it down a little?
Hi Ollie,
Basically you need to install these, how these are installed will vary depending on your platform, you can google them:
git – For getting the code
ant – For building the code
java – For running the code
Run these in a terminal:
Get the code from the repo:
git pull https://github.com/pilkch/postcodes.git
Compile the application:
cd postcodes/
ant build
Run the application (This might be “java Application”, I can’t remember):
ant Application
If everything worked, there will now be these files in your postcodes folder:
points_au.kml
points_nz.kml
points_nz2.kml
Sorry, I’m still really lost. Would you be able to upload the kml files onto,
say, Google Drive, and share a
link here?
One other thing, you can also avoid using git altogether by just getting a zip of the repo:
https://github.com/pilkch/postcodes/archive/master.zip
Anyway, here are the kml files:
points_au.kml
points_nz.kml
points_nz2.kml
Thanks for trying to use my software š