Hey guys!
I've showed most of you guys this, but here's the breakdown:
http://eastbayvivarium.com/shipping-estimator.html
First things first, enter the weight of the animal. It defaults to grams, but tapping the toggle will change the entry to pounds.
Then hit "Get Quote"!
There are a list of fields shipping companies need to give us a quote. I've pre-populated a few with defaults. (Why are they there at all? More later.)
The important bits are the shipping address and the zip code. Note, that if you put in an invalid pair, the page will let you know and it will not proceed.
Once you do proceed, you'll see that you're given a validated address, and shipping quotes for the day. This includes GSO if it's an address they'll deliver to. Note that after GSO's cutoff for the day, their quote disappears, even if it's a valid GSO address.
The address displayed on that page is the validated one, meaning it's real, that's how it's spelled, etc. No more goofs!
The package has a pre-guessed size and weight, according to the parameters below:
300:
length: 7
width: 7
height: 6
packageWeightGrams: 100
1200:
length: 12
width: 9
height: 6
packageWeightGrams: 250
5000:
length: 15
width: 11
height: 7
packageWeightGrams: 400
10000:
length: 16
width: 16
height: 8
packageWeightGrams: 550
25000:
length: 24
width: 24
height: 24
packageWeightGrams: 800
100000:
length: 48
width: 48
height: 48
packageWeightGrams: 2000
So, for an animal up to 300 grams, it assumes a 7x7x6 box, and that the box itself weighs 100 grams .... so on and so forth down the table there. Let me know if any of these estimates look off, if so, I'll edit them. The package weight is added to the animal weight before the quote is fetched, so the quote gotten should include the total shipping weight.
Next, each quote automatically adds $5 for materials. (This number is open to debate -- what do you think?).
Why the extra details at all in the beginning? With the same APIs, I could, theoretically, set it up so we can directly buy a printable label from this interface. The quote isn't so much a "quote" anymore, then, but the actual cost. Before I play with that, however, we should verify some of the ballpack things like package sizes and weights.