A tool to fetch live quote from Transvirtual via the e-go website using puppeteer and chromium headless
npm install
npm run watch
node app.js
'localhost:3000/12180/1180101/15/20/25/53' -> {"quote":"$78.00"}
This is comprised of:
- Sending suburb Id: 12180 (You can query the transverse api for this directly)
- Receiving suburb Id: 1180101
- Length: 15cm
- Width: 20cm
- Height: 25cm
- Weight: 53kgs
This is a publicly accessible api for discovering the unique ID of possible suburbs
'https://portal.transvirtual.co/Widget/SuburbAutocomplete?term=' + term
This will return a list of possible options in a json array, along with their ID's.
'[{"IdSuburb":1180911,"Suburb":"Melaleuca","Postcode":"6079","State":"WA","SuburbDisplay":"Melaleuca WA, 6079"}]'