Pos Malaysia Shipping Price World Map

March 3rd, 2010 | by Sean |
Pos Malaysia world shipping charges

Pos Malaysia world shipping charges.

The Pos Malaysia World Shipping Map is an example of what you can do with an API. Given a weight and a shipping method, you can draw a global map of relative shipping costs. Now that the Pos Malaysia data has been converted to use ISO3166-1 Country Codes, it’s trivial to take data from it and merge it with useful resources from elsewhere which also comply with international standards.

The map is a public domain SVG file from Wikipedia. The creators of the map specified ids for the countries using ISO3166 2-letter country codes. I generate CSS colour codes from the country code / relative price data obtained from the API, and build a coloured map on the server. The coloured map is about 2MB in size, so I convert it into a smaller PNG image and send the URL back to the browser.

Note that I’m not suggesting Pos should create fancy coloured maps. These maps arguably could be handy for checking completeness of shipping data coverage, or ‘eye-balling’ the global map to spot inconsistencies in charging. The world shipping map is just another example of what is possible for third parties IF Pos Malaysia exposed a usable API.

If you want to play with the world maps, be aware that spider.my is hosted on a tiny VPS (Virtual Private Server) in the USA – it only has 64MB of memory and 2GB of hard disk. It can be a little bit slow to convert the SVG graphics into an image. As long as I haven’t given up on getting Pos to adopt the API, you should be able to access the same features at pos.spider.my – that’s a bigger server sitting on my desk in Malaysia.

If the maps inspire you to try out an idea of your own, make sure you contact me first to encourage me to leave the API online! Better yet, find someone from Pos Malaysia to tell “Hey! Let that guy set up your API for you so we can do good stuff with your data!”.

You can send 10kg by Pos Parcel Surface very cheaply almost anywhere, compared to Bolivia and is that Uzbekistan?

10kg by Pos Parcel Surface

Pos Parcel Surface doesn’t permit sending 15kg to nearly as many destinations:

15kg by Pos Parcel Surface

And you’ll get eye strain spotting the countries to which you can (by Pos Parcel Surface) send 15kg, but you can’t send 20kg:

20kg by Pos Parcel Surface

These are tiny images, but they’re created from SVG on the server, so enormous versions are available on request!

Post a Comment