NEW: Pos Malaysia Parcel rates

March 1st, 2010 | by Sean |

All this work is now packaged up into the spider.my Shipping Quotations API. Check there for latest shipping API methods, shipping modules etc.

0.5kg to France, 4 quotes: Pos Laju Document and Parcel, Pos Parcel Surface and Air

0.5kg to France, 4 quotes: Pos Laju Document and Parcel, Pos Parcel Surface and Air

This morning I modified the International Pos Laju rates ripping code to get a full set of Pos Malaysia’s International Parcel rates. If you use the widget on my blog, you’ll see that the countries to which Pos Malaysia ships by Pos Laju will also offer Pos Parcel ‘Surface’ and ‘Air’ prices where these are available. Try 0.5kg to France, for example. You should see something like the image here.

There are far more countries listed under the Parcel shipping method at Pos’ website, but I’m not listing those for now. I mentioned earlier that there’s an issue with free-format country names on Pos’ website. The Parcel method country names are just as bad as the Pos Laju ones, listing Yugoslavia – for example – which hasn’t existed as a country since 2003. Also, you won’t see parcel quotes for Germany because Pos’ website has it listed as ‘German’ (no ‘y’ – see also Luxembourg and Luxzembourg, Netherlands and Netherland). And the United Kingdom is listed as ‘Great Britain’. The ‘new ‘ countries (including misspelled ones) are all available from the AJAX shipping quotation demonstration page. See the updated XML for a 0.2kg shipment to Bahrain. Full rating tables are also available for download from the shipping rates download page. Here, for example, are all rates for Norway.

It’s an eye-bleedingly pains-taking job ripping this data. I mentioned previously the omission of per-country max weights on some Pos Laju quotes, resulting in a default (I guess) max weight of 999kg being offered. The max weights all seem to be present on the Parcel quotes, but the tables don’t all give prices up to the max weight, using ‘-’ (I imagine) to signify that the upper weights are not available. This simply isn’t good enough for use in 3rd party computer systems. I incorporate some guesses in my ripping code in order for it to run to completion, despite the inconsistencies in the Pos data. This on its own would be a good reason why no other entity besides Pos Malaysia should provide shipping data.

I’ve sent emails so far to csc and corpcomm at Pos in an attempt to find someone I can talk to about this stuff. It would take only minutes to put the API online on Pos Malaysia’s domain, and possibly only a day to apply Pos branding to it. If (as I hope) Pos were to use spider.my’s Spinneret web server, they would instantly be able to serve millions of queries per hour from just about any old hardware they had lying about the office. In tests on my 4-year-old laptop, Spinneret can serve an average of 1,500 shipping quotations per second – before optimisations, and with the server test software running on the same machine! I should have made Spinneret open source before now, but would provide a full set of sources to Pos in any case.

If anybody has a suggestion of who I could contact to expedite this matter, please let me know? Thanks!

Be Sociable, Share!
  1. 9 Responses to “NEW: Pos Malaysia Parcel rates”

  2. By Byron - Parcel Delivery Man on Jul 29, 2010 | Reply

    Hi,

    Not sure who you could ask but it sounds like you are doing as much as I am, all I seem to do is copy and paste my life away.

    Have you got this complete yet, as I would be interested to see it up and running.

  3. By Sean on Jul 29, 2010 | Reply

    Here’s a sneak preview, running on my desk in West Coast Malaysia:
    http://test.spider.my/search.xhtml?q=1kg+to+australia

    That version (now a few weeks out of date) defaults to deliveries from Malaysia. The latest version guesses the browser’s location (to country), so should be able to give courier quotes from any country to any other. The problem is getting the quote data into the system in the first place. The Pos Malaysia data from their website is a mess, but I’ve written some conversion programs that I can just start and they’ll build a full set of shipping cost calculation tables from their website with no input from me at all (until Pos changes their website again). I’ve got a couple of conversion programs for other Malaysian couriers ready to go (the programs take an hour or so to write for each shipping method I find on the Web), and I’ve been eyeing up some of the less complicated UK web-based shipping sites for inclusion too.

    I’m still working on some of the back-end to spider.my, but it should be properly online any week now! I am still intending to provide API access to the shipping cost calculator, but not sure quite when it’ll go live.

  4. By WAN SURIHAN on Feb 9, 2011 | Reply

    I need pricelist for parcal rate…

  5. By Sean on Feb 9, 2011 | Reply

    I don’t have pricelists, only an API:
    http://spider.my/about/API.xhtml
    and some shipping modules for osCommerce / Zen Cart:
    http://spider.my/about/shipping/Shipping_modules.xhtml

    If you explain how you’re going to use shipping quotations, I may be able to help.

  6. By LAJ on Oct 13, 2011 | Reply

    Hi Sean, where is your API.. i can’t access it at all.

  7. By Sean on Oct 27, 2011 | Reply

    Sorry about that, and thanks for your interest. It’s currently in “end of life” mode at shipping-quote.net – I’ve recently moved from one side of the world to the other and lots of other stuff has changed, so I’ll probably take it off-line sometime in the next few months. It should all be still working, but there just isn’t enough interest in it (or users of it) for me to spend the time maintaining it.

  8. By Ravi on Dec 21, 2011 | Reply

    is this API able to work on prestashop ??

  9. By Sean on Dec 22, 2011 | Reply

    I don’t see why not – as long as it’s possible for *anyone* to write a shipping module for Prestashop, the SQ API will work the same for one site as it will for any other.

  1. 1 Trackback(s)

  2. Mar 1, 2010: Pos Malaysia Shipping Widget for your website

Post a Comment