<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: New Zealand Postcode Database (V2)</title>
	<atom:link href="http://www.noodles.net.nz/2007/09/14/new-zealand-postcode-database-v2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.noodles.net.nz/2007/09/14/new-zealand-postcode-database-v2/</link>
	<description>There is no spoon</description>
	<pubDate>Thu, 20 Nov 2008 23:10:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Ozgur</title>
		<link>http://www.noodles.net.nz/2007/09/14/new-zealand-postcode-database-v2/#comment-36389</link>
		<dc:creator>Ozgur</dc:creator>
		<pubDate>Fri, 14 Nov 2008 05:24:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.noodles.net.nz/2007/09/14/new-zealand-postcode-database-v2/#comment-36389</guid>
		<description>Am I right in saying that the combination of Postcode, Suburb and Town/City is unique.

i.e. For Australian postcodes, we look at the suburb and postcode combination. Matching these two will give us the state as the particular suburb and postcode combination can only exist in one state.

However when looking at the data, I believe for New Zealand postcodes we can't do this. To the point that a combination of Suburb and Postcode is not unique to a particular town.

Am I correct in my understanding of this?

Does anyone have any suggestions regarding how we could handle New Zealand postcodes in a similar way to Australia?</description>
		<content:encoded><![CDATA[<p>Am I right in saying that the combination of Postcode, Suburb and Town/City is unique.</p>
<p>i.e. For Australian postcodes, we look at the suburb and postcode combination. Matching these two will give us the state as the particular suburb and postcode combination can only exist in one state.</p>
<p>However when looking at the data, I believe for New Zealand postcodes we can&#8217;t do this. To the point that a combination of Suburb and Postcode is not unique to a particular town.</p>
<p>Am I correct in my understanding of this?</p>
<p>Does anyone have any suggestions regarding how we could handle New Zealand postcodes in a similar way to Australia?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alex</title>
		<link>http://www.noodles.net.nz/2007/09/14/new-zealand-postcode-database-v2/#comment-36379</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Tue, 28 Oct 2008 10:01:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.noodles.net.nz/2007/09/14/new-zealand-postcode-database-v2/#comment-36379</guid>
		<description>Not having the regions in there makes it a bit annoying :( Do you plan on adding the regions back in for the future?</description>
		<content:encoded><![CDATA[<p>Not having the regions in there makes it a bit annoying <img src='http://www.noodles.net.nz/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> Do you plan on adding the regions back in for the future?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://www.noodles.net.nz/2007/09/14/new-zealand-postcode-database-v2/#comment-36347</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Fri, 01 Aug 2008 10:51:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.noodles.net.nz/2007/09/14/new-zealand-postcode-database-v2/#comment-36347</guid>
		<description>I haven't yet downloaded the database as ive maxed out my data for the month and doing so will be painfully slow. But if the accuracy of this database is slightly out i just want to suggest how easy it would be to extract the info from publicly available pdfs using basic text parsing. 

For instance from post code directory pdfs simply select all text and dump to plain text file, then parse. 

Its very easy as the "junk" text such as "please visit our website.." is repeated in large blocks throughout the document and can be easily stripped out in a matter of seconds. 

That will leave u with some nice blocks of text starting with "Lobby Name Box/Bag Range Postcode", "Postcode Listings – Urban Areas " and "To check that an address is serviced by Rural Delivery" that you can use to change parsers for a specific post code type. 

If you look at the plain text dump you'll see that RD parsing is a piece of cake as are boxs and bags (lobby/start/end/post code). Its a very basic 3 columns format. Very simple.

Urban addresses look complicated but they are not if u consider that all New Zealand address fall into about 12 categories (streets/roads/lanes/etc). So when parsing the text for urban addresses just check and compare against these. If the word your on is one of these categories then you know uve just hit then end of a street, from there u should be expecting a suburb/town, so if u hit a numeric digit instead of a letter then you know you got a street range, then after the suburb/town the next series of digits is the post code. 

So the logic to parse the documents from NZ Post is very very simple, although given the copyright probably illegal. I estimate maybe 2-3 hours of coding and you'd have the whole database in 100% accurate form straight from the horses mouth so to speak.</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t yet downloaded the database as ive maxed out my data for the month and doing so will be painfully slow. But if the accuracy of this database is slightly out i just want to suggest how easy it would be to extract the info from publicly available pdfs using basic text parsing. </p>
<p>For instance from post code directory pdfs simply select all text and dump to plain text file, then parse. </p>
<p>Its very easy as the &#8220;junk&#8221; text such as &#8220;please visit our website..&#8221; is repeated in large blocks throughout the document and can be easily stripped out in a matter of seconds. </p>
<p>That will leave u with some nice blocks of text starting with &#8220;Lobby Name Box/Bag Range Postcode&#8221;, &#8220;Postcode Listings – Urban Areas &#8221; and &#8220;To check that an address is serviced by Rural Delivery&#8221; that you can use to change parsers for a specific post code type. </p>
<p>If you look at the plain text dump you&#8217;ll see that RD parsing is a piece of cake as are boxs and bags (lobby/start/end/post code). Its a very basic 3 columns format. Very simple.</p>
<p>Urban addresses look complicated but they are not if u consider that all New Zealand address fall into about 12 categories (streets/roads/lanes/etc). So when parsing the text for urban addresses just check and compare against these. If the word your on is one of these categories then you know uve just hit then end of a street, from there u should be expecting a suburb/town, so if u hit a numeric digit instead of a letter then you know you got a street range, then after the suburb/town the next series of digits is the post code. </p>
<p>So the logic to parse the documents from NZ Post is very very simple, although given the copyright probably illegal. I estimate maybe 2-3 hours of coding and you&#8217;d have the whole database in 100% accurate form straight from the horses mouth so to speak.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.noodles.net.nz/2007/09/14/new-zealand-postcode-database-v2/#comment-36346</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 01 Aug 2008 03:20:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.noodles.net.nz/2007/09/14/new-zealand-postcode-database-v2/#comment-36346</guid>
		<description>I notice that there are roughly 360 unique postcodes in your CSV file.  Having spoken to NZ Post, I understand that NZ actually has over 1600 unique postcodes.  Am I doing something stupid?

Thx.</description>
		<content:encoded><![CDATA[<p>I notice that there are roughly 360 unique postcodes in your CSV file.  Having spoken to NZ Post, I understand that NZ actually has over 1600 unique postcodes.  Am I doing something stupid?</p>
<p>Thx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.noodles.net.nz/2007/09/14/new-zealand-postcode-database-v2/#comment-36234</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Tue, 15 Jul 2008 05:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.noodles.net.nz/2007/09/14/new-zealand-postcode-database-v2/#comment-36234</guid>
		<description>I am using your info via the Zip Codes application on my iPod Touch.  There seems to be large gaps in the information.  I have noticed that all postal codes between 3225 and 3300 are not there - ours is 3288.  They are missing from the CSV file on your site.

Will be very useful.</description>
		<content:encoded><![CDATA[<p>I am using your info via the Zip Codes application on my iPod Touch.  There seems to be large gaps in the information.  I have noticed that all postal codes between 3225 and 3300 are not there - ours is 3288.  They are missing from the CSV file on your site.</p>
<p>Will be very useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://www.noodles.net.nz/2007/09/14/new-zealand-postcode-database-v2/#comment-36200</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Thu, 10 Jul 2008 02:23:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.noodles.net.nz/2007/09/14/new-zealand-postcode-database-v2/#comment-36200</guid>
		<description>Be wary where a suburb name appears twice.IE a suburb name appears in two different towns(there are 59 of them). It is possible these have the wrong id assigned.

Roslyn are suburbs in Palmerston North &#38; Dunedin.

EXAMPLE:

SELECT *
FROM `suburbs`
WHERE `postcode` = 4414

Returns(3 rows I've removed 2 for brevity):

907  	Roslyn  	Palmerston North  	4414

So the suburb id is 907

BUT...

if we do:

SELECT *
FROM `streets`
WHERE `postcode` = 4414

and we find Tremaine Ave in the result set we see:

39456  	Tremaine Avenue  	647-1057  	4414  	0  	906  	175.602  	-40.343  	1
	Edit 	Delete 	39457 	Tremaine Avenue 	666-1050 	4414 	2 	906 	175.602 	-40.343 	1

we see the suburb id is 906 ( tremaine ave, 4412 is in Palmerston North) 

...

SELECT *
FROM `suburbs`
WHERE `suburbid` =906

returns:

906  	Roslyn  	Dunedin  	9010


Regards Brett</description>
		<content:encoded><![CDATA[<p>Be wary where a suburb name appears twice.IE a suburb name appears in two different towns(there are 59 of them). It is possible these have the wrong id assigned.</p>
<p>Roslyn are suburbs in Palmerston North &amp; Dunedin.</p>
<p>EXAMPLE:</p>
<p>SELECT *<br />
FROM `suburbs`<br />
WHERE `postcode` = 4414</p>
<p>Returns(3 rows I&#8217;ve removed 2 for brevity):</p>
<p>907  	Roslyn  	Palmerston North  	4414</p>
<p>So the suburb id is 907</p>
<p>BUT&#8230;</p>
<p>if we do:</p>
<p>SELECT *<br />
FROM `streets`<br />
WHERE `postcode` = 4414</p>
<p>and we find Tremaine Ave in the result set we see:</p>
<p>39456  	Tremaine Avenue  	647-1057  	4414  	0  	906  	175.602  	-40.343  	1<br />
	Edit 	Delete 	39457 	Tremaine Avenue 	666-1050 	4414 	2 	906 	175.602 	-40.343 	1</p>
<p>we see the suburb id is 906 ( tremaine ave, 4412 is in Palmerston North) </p>
<p>&#8230;</p>
<p>SELECT *<br />
FROM `suburbs`<br />
WHERE `suburbid` =906</p>
<p>returns:</p>
<p>906  	Roslyn  	Dunedin  	9010</p>
<p>Regards Brett</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://www.noodles.net.nz/2007/09/14/new-zealand-postcode-database-v2/#comment-36192</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Wed, 09 Jul 2008 23:23:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.noodles.net.nz/2007/09/14/new-zealand-postcode-database-v2/#comment-36192</guid>
		<description>To Nick: I haven't been able to replicate this. Can you paste your query?</description>
		<content:encoded><![CDATA[<p>To Nick: I haven&#8217;t been able to replicate this. Can you paste your query?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian</title>
		<link>http://www.noodles.net.nz/2007/09/14/new-zealand-postcode-database-v2/#comment-36171</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Tue, 08 Jul 2008 03:49:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.noodles.net.nz/2007/09/14/new-zealand-postcode-database-v2/#comment-36171</guid>
		<description>Hi Noodle

How do I use your software?  Run it against a csv file or ???

cheers</description>
		<content:encoded><![CDATA[<p>Hi Noodle</p>
<p>How do I use your software?  Run it against a csv file or ???</p>
<p>cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rachel</title>
		<link>http://www.noodles.net.nz/2007/09/14/new-zealand-postcode-database-v2/#comment-36139</link>
		<dc:creator>Rachel</dc:creator>
		<pubDate>Fri, 04 Jul 2008 02:55:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.noodles.net.nz/2007/09/14/new-zealand-postcode-database-v2/#comment-36139</guid>
		<description>Noodle, you're awesome.  Thanks so much.  You saved me many many hours trying to do a web scrape.

 - Rachel</description>
		<content:encoded><![CDATA[<p>Noodle, you&#8217;re awesome.  Thanks so much.  You saved me many many hours trying to do a web scrape.</p>
<p> - Rachel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://www.noodles.net.nz/2007/09/14/new-zealand-postcode-database-v2/#comment-35095</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Wed, 18 Jun 2008 08:40:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.noodles.net.nz/2007/09/14/new-zealand-postcode-database-v2/#comment-35095</guid>
		<description>Hey noodles,

Many thanks for putting in the work to provide this - I started scraping PDFs and it's nasty work.

I've found a problem with the suburb table though. If you look at the 'Vernon Terrace' street field, join the suburb table onto the postcode column and join another suburb table onto the suburb column. Basically the suburb column and postcode column contradict eachother: suburb reads Hillsborough in Auckland and postcode reads Christchurch.

I hope this is of help to you, and again many thanks for doing this!</description>
		<content:encoded><![CDATA[<p>Hey noodles,</p>
<p>Many thanks for putting in the work to provide this - I started scraping PDFs and it&#8217;s nasty work.</p>
<p>I&#8217;ve found a problem with the suburb table though. If you look at the &#8216;Vernon Terrace&#8217; street field, join the suburb table onto the postcode column and join another suburb table onto the suburb column. Basically the suburb column and postcode column contradict eachother: suburb reads Hillsborough in Auckland and postcode reads Christchurch.</p>
<p>I hope this is of help to you, and again many thanks for doing this!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
