mb_batch_geocode | R Documentation |
Geocode addresses or locations in bulk using the Mapbox Batch Geocoding API
mb_batch_geocode(
data,
search_column = NULL,
address_line1 = NULL,
address_number = NULL,
street = NULL,
block = NULL,
place = NULL,
region = NULL,
postcode = NULL,
locality = NULL,
neighborhood = NULL,
country = NULL,
permanent = FALSE,
limit = 1,
search_within = NULL,
language = NULL,
types = NULL,
proximity = NULL,
worldview = NULL,
allow_large_job = FALSE,
access_token = NULL,
sf = TRUE
)
data |
An input data frame |
search_column |
A column that contains a description of the place to geocode, or a full address. |
address_line1 |
The name of a column in |
address_number |
The name of a column in |
street |
The name of a column in |
block |
The name of a column in |
place |
The name of a column in |
region |
The name of a column in |
postcode |
The name of a column in |
locality |
The name of a column in |
neighborhood |
The name of a column in |
country |
A character string or vector of ISO 3166 alpha-2 country codes within which you would like to limit your search. |
permanent |
Either FALSE (the default) when results are not intended to be stored, or TRUE if the results are planned to be stored. |
limit |
How many results to return per address. This is not currently accessible for users and can only be 1. |
search_within |
An |
language |
The user's language, which can help with interpretation of queries. Available languages are found at https://docs.mapbox.com/api/search/#language-coverage. |
types |
A vector of feature types to limit to which the search should be
limited. Available options include |
proximity |
proximity Either a vector of coordinates or an IP address string to bias the results to favor locations near to the input location. |
worldview |
Returns features intended for different regional or cultural groups. The US ( |
allow_large_job |
A boolean indicating that the user is OK with potential charges incurred to their account due to a large geocoding job (over 1000 addresses). The Mapbox Free Tier includes 100,000 free geocodes per month. Defaults to |
access_token |
The Mapbox access token (required); can be set with
|
sf |
A boolean that determines whether the output will be an sf POINT object ( |
The input dataset as an sf POINT object representing the geocoded locations, or the input dataset with longitude, latitude, and matched address columns included.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.