Requires pdftotext
. You can get that by installing poppler
: brew install poppler
- Download zone mapping pdf from the Fedex website.
- Save the pdf into
fedex/fedex-zones-pdf
, following the existing naming convention. - Add and commit the new PDF using
git
- Open a terminal and navigate to
dors-shipping-zone-mapper/fedex
. - Convert the PDF to TSV using
node convert_pdfs_to_tsvs.mjs
. - Convert the TSVs to the Fedex zone mapping tree using
node convert_fedex_zones.mjs
. - Check the git diff of
fedex.json
to ensure the file generated correctly - Replace existing
fedex.json
file in DORS (dynamic-fulfillment-router/app/src/staticdata/carrierzone
) with the newly generated tree.
- Add the new zip3 to gimme.sh (zip3 uses the first 3 digits of a typical 5 digit zip code).
- Open a terminal and navigate to
dors-shipping-zone-mapper/usps
. - Run
sh gimme.sh
to download data to/usps-zones-json
. - Convert zone jsons to tree using
node convert_usps_zones.mjs
. - Check the git diff of
usps.json
andusps-upsmi-overlay.json
to ensure the file generated correctly. - Replace existing
usps.json
andusps-upsmi-overlay.json
file in DORS (dynamic-fulfillment-router/app/src/staticdata/carrierzone
) with the newly generated trees.