Description Usage Arguments Details Value See Also Examples
View source: R/fetch_zones_all.R
Grab all the 3-digit origin-destination pairs.
1 2 3 |
origins |
A vector of origin zips. Defaults to all possible origin zips from 000 to 999. |
write_to |
The path to a CSV file to create and append each result to. |
sleep_time |
How long to sleep in between requests, plus or minus |
n_tries |
How many times to try getting an origin if we're unsuccessful the first time? |
as_range |
Do you want zones corresponding to a range of destination zips or a full listing of them? |
show_details |
Should columns with more details be retained? |
verbose |
Message what's going on? |
For all the 3-digit origin zip codes, grab all destination zips and their corresponding zones. This is equivalent to running fetch_zones_three_digit
for all possible 3 digit origin zips.
If this fails partway through, origins that could not be retrieved get a "no_success" value in their dest_zip
and zone
columns but we continue trying to grab results for all supplied origins
.
A tibble with origin zip and destination zips (in ranges or unspooled) and the USPS zones the origin-destination pair corresponds to.
fetch_zones_three_digit
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.