3 replies [Last post]
moby's picture
Offline
Joined: 10/05/2008
Juice: 169
Was this information Helpful?

Hi Guys,

Fastway has a price calculator on their site.
http://www.fastway.com.au/1HomepageGeneric.html which posts input to:
http://www.fastway.com.au/Magic94scripts/mgrqispi94.dll

the form uses POST to pass the varibles.

Is it possible to use this in a fastway courier (shipping calculation) module?

Im a complete noob when it comes to this..
maybe we can pool resources and create a bounty?

Thanks

univate@drupal.org's picture
Offline
Getting busy with the Ubercode.
Joined: 03/27/2009
Juice: 465
Re: Australia Fastway couriers module

What you actually want is an API provided by the company specifically for querying this information. It is possible to submit forms, but the problem is if the company updates the website the form elements could change. Also the result form that POST is probably going to be a full html page, meaning to get the information you have to parse the html and any small change in the layout of the site would break.

What you should do is ask the company for a direct API for getting this information as they may have one that they don't advertise or be willing to build something.

moby's picture
Offline
Joined: 10/05/2008
Juice: 169
Fastway courier shipping Module

Thanks for the tips, Ive done some more digging. Also hoping for an email back from them.

It turns out that there is a API/XML option..

Are others keen to see this module?

By passing the query formed like this:

http://www.fastwayfms.com/scripts/mgrqispi.dll?appname=FW&prgname=FastLo...

It returns the following:

<?xml version="1.0"?>
<fastlocator>
<fromto>Newcastle to Perth</fromto>
<destination>
<dest>Perth</dest>
<state>WA</state>
<postcode>6000</postcode>
<delfranchise>Perth</delfranchise>

<deltime>2 to 7</deltime>
</destination>
<service>
<serv>Road</serv>
<labelcolour>GREEN</labelcolour>
<price>$20.30 to 24.15</price>
<weightlimit>   5</weightlimit>

<numsaverlabels>    4</numsaverlabels>
<totalprice> $  13.20 -  $  15.40</totalprice>
</service>
<service>
<serv>Satchel</serv>
<labelcolour>A2/A3 BLUE</labelcolour>

<price>$8.42 to 10.07</price>
<weightlimit>   3</weightlimit>
<numsaverlabels>N/A</numsaverlabels>
<totalprice>N/A</totalprice>
</service>
</fastlocator>

pCountry=1 : is Australia
Franchisee : is your local courier location
Postcode & Town : is your destination
Weight : is the package weight.

Fastway is also in: New Zealand, Australia, Ireland, Northern Ireland, England, Scotland, Wales, Germany, South Africa. So these could be included as well

Cheers!

Kris R's picture
Offline
Joined: 01/12/2011
Juice: 14
Did this go anywhere?

Did this ever go anywhere? I'd be really interested in a Fastway module...