Following this thread, I emailed NZ Post to see if they have an API
available.

Good news, though progress seems somewhat slow: "We are working on a Rate
Finder API which will allow you to supply the dimensions and weight of a
package and get sending options back.

You can see our first efforts in this space here (the proper API will be
in REST format):
http://www.nzpost.co.nz/NZPost/Services/Ratefinder.aspx?t=200&h=100&l=100&w=2&src=auckland&dest=wellington

and a Google Gadget which uses this basic API here:
http://www.nzpost.co.nz/ratefindergadget

Unfortunately we cannot offer you anything at this time which caters for
international rates - but we will be making a full Rate Finder API
available very soon (we already have a Track and Trace API in beta - due
for release in the next couple of months).

If you would like to be part of the Track and Trace beta test group
(and/or the Rate Finder beta test group) please contact Rob Holmes
directly at: rob dot holmes at nzpost dot co dot nz"

I've emailed Rob Holmes to get involved in the beta programme.

Docs from the Google gadget thread (first comment):

"Note: The Rate Finder gadget uses a new Rate Finder API (also in beta).
It exposes just three methods at this stage, and we reserve the right to
"turn it off" at any time (unlikely, but possible). We are keen to hear
your feedback and suggestions for the API as well as just the gadget
(including requests for API documentation). You can see the API calls in
action if you "view source" for the gadget - link on the right of this
page. Examples calls are:
1)http://www.nzpost.co.nz/NZPost/Services/Ratefinder.aspx?GetLocations=source
2)http://www.nzpost.co.nz/NZPost/Services/Ratefinder.aspx?GetLocations=destination
3)http://www.nzpost.co.nz/NZPost/Services/Ratefinder.aspx?t=200&h=100&l=100&w=2&src=auckland&dest=wellington";

Regards
Jonathan

---
On 15/07/2009, at 11:41 AM, Nathan Kennedy wrote:
Hmmm. I sense a good opportunity for a third party community driven wrapper
for NZ Post rate calculator, rather than lots of individual developers doing
the same work to achieve the same goal.

You never know, it could end up that NZ Post decide to implement it in the
end - who knows.



-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Jochen Daum
Sent: Wednesday, 15 July 2009 11:15 a.m.
To: [email protected]
Subject: [phpug] Re: Calculating Freight Charges With NZ Post


Hi,




On Wed, Jul 15, 2009 at 11:10 AM, Super Steve<[email protected]> wrote:

Thanks for the suggestion, Jochen.

When I originally set up this client's website I looked at the NZ Post
website and saw that their Rate Finder was all done in JavaScript, so
I reverse-engineered it and re-coded it in PHP.  But then they changed
it to Flash which made it a bit harder to see what was going on
inside...

I would have thought that this is such a common thing to need that NZ
Post would already have a service in place, but I guess not.


No competition, no service necessary to get customers. Where else
would you go I guess.

You can find out what is happening pretty easily by using Firebugs Net
tab, Wireshark or Fiddler.


HTH, Jochen






Jonathan Hunt
http://huntdesign.co.nz
+64 21 529 250
PO Box 1062, Christchurch 8140, New Zealand





--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to