{"id":795,"date":"2010-02-25T18:31:49","date_gmt":"2010-02-25T10:31:49","guid":{"rendered":"http:\/\/blog.lolyco.com\/sean\/?p=795"},"modified":"2011-01-26T15:37:20","modified_gmt":"2011-01-26T07:37:20","slug":"pos-malaysia-shipping-rates-download","status":"publish","type":"post","link":"https:\/\/blog.lolyco.com\/sean\/2010\/02\/25\/pos-malaysia-shipping-rates-download\/","title":{"rendered":"Pos Malaysia shipping rates download"},"content":{"rendered":"<div id=\"attachment_796\" style=\"width: 250px\" class=\"wp-caption alignright\"><a href=\"http:\/\/blog.lolyco.com\/sean\/wp-content\/uploads\/2010\/02\/spider.my_.pos_.rates3_.jpeg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-796\" class=\"size-full wp-image-796\" title=\"Download Pos Malaysia shipping rates\" src=\"http:\/\/blog.lolyco.com\/sean\/wp-content\/uploads\/2010\/02\/spider.my_.pos_.rates3_.jpeg\" alt=\"Download Pos Malaysia shipping rates\" width=\"240\" height=\"197\" \/><\/a><p id=\"caption-attachment-796\" class=\"wp-caption-text\">Download Pos Malaysia shipping rates at spider.my<\/p><\/div>\n<p><span style=\"color: #ff0000;\">Update January 2011 &#8211; there won&#8217;t be any rates download for some time. If you&#8217;re looking for a <a href=\"http:\/\/blog.lolyco.com\/sean\/2011\/01\/19\/spider-my-shipping-modules-v0-3-for-oscommerce-zen-cart-pos-malaysia\/\">shipping module for osCommerce \/ Zen Cart try this article<\/a>. If you&#8217;re looking for <a href=\"http:\/\/spider.my\/about\/API.xhtml\">simplified access to Pos Malaysia&#8217;s shipping rates, you could use the spider.my API here<\/a>.<\/span><\/p>\n<p>Nearly there! Yesterday&#8217;s marathon session to rip <a href=\"http:\/\/www.pos.com.my\/\">Pos Malaysia<\/a>&#8216;s rating data and make it persistent on <a href=\"http:\/\/spider.my\/\">spider.my<\/a> made today&#8217;s job a little bit easier. The first part of the API is done: there&#8217;s a minimal interface for obtaining a single shipping quotation. Today sees the second part complete: a method for obtaining a complete set of rating data for a 3rd-party application.<\/p>\n<p>If you visit <span style=\"text-decoration: line-through;\">part 3 of my Pos Malaysia API demo<\/span>, you can now select country and shipping method (or all of one, or all of both), and the page will give you a link from which you can download a full set of rates in <a href=\"http:\/\/en.wikipedia.org\/wiki\/XML\">XML<\/a> format. There is just one little wrinkle, and that is that I&#8217;m using unchanged data from Pos Malaysia. On some of their (less-popular, I&#8217;m guessing) destinations, they claim to deliver parcels up to 999kg! I store the shipping data as a table of prices against all the different weights for a shipping method, so with 0.5kg divisions, I end up with 2,000 entries for some methods. My storage method is quite efficient, so it&#8217;s not a problem on the server, but if you request All Countries + All Methods, the XML data file is several MB in size.<\/p>\n<p>For an example of one of the smaller data files, see this XML file containing the data for Pos Laju Document and Parcel deliveries to the UK:<\/p>\n<p><span style=\"text-decoration: line-through;\">http:\/\/spider.my\/pos-malaysia-rates-3\/-ANY&#8211;to-United%20Kingdom.xml<\/span><\/p>\n<p>See? That&#8217;s a very simple format, easily incorporated into your current application. There are just a couple of little things I&#8217;d like to do in the way of demonstrations, and then I&#8217;ll try to find someone at Pos who might be interested in providing an API to local e-businesses.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Update January 2011 &#8211; there won&#8217;t be any rates download for some time. If you&#8217;re looking for a shipping module for osCommerce \/ Zen Cart try this article. If you&#8217;re looking for simplified access to Pos Malaysia&#8217;s shipping rates, you could use the spider.my API here. Nearly there! Yesterday&#8217;s marathon session to rip Pos Malaysia&#8216;s [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,40,60,3],"tags":[21,109,19,9,18,57],"class_list":["post-795","post","type-post","status-publish","format-standard","hentry","category-fixed","category-life","category-money","category-software","tag-e-commerce","tag-fixed","tag-malaysia","tag-open-source","tag-server","tag-web"],"_links":{"self":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts\/795","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/comments?post=795"}],"version-history":[{"count":7,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts\/795\/revisions"}],"predecessor-version":[{"id":800,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts\/795\/revisions\/800"}],"wp:attachment":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/media?parent=795"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/categories?post=795"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/tags?post=795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}