Description Usage Arguments Details Value Examples
View source: R/here_batch_geocoder.R
here_batch_geocoder Returns a data.frame containing the latitude and longitude of a list of addresses.
This should only be used to search large volumes of data with Here Geolocation Services.
1 | here_batch_geocoder(df, search_var, country, here_id, here_code)
|
df |
A data.frame containing the columns of the searchText and the Country where this address is located - data.frame/tibble |
search_var |
The column which contains the address/text to be searched by the Here API |
country |
The column which contains the country where this address is located |
here_id |
The developer application ID that uniquely identify the user |
here_code |
The developer application Code that uniquely identify the user |
This function is used by passing a data.frame, that contains a column with the text to be searched in the Here API, and a column with the Country which this address/text refers to. It also leverages two other functions from this (heRe) package: 'here_get_job_status' and 'here_download_job'. This process occurs to allow the user to upload a data.frame with many observations to be fulfilled by latitude and longitude data from the Here API, and return a data.frame containing the searchText, and the latitude and longitude pair.
Given a valid app_id, and app_code, the script returns a data.frame containing the searched text/address, and the latitude and longitude, if it found any.
1 2 3 4 5 6 7 8 9 | ## Not run:
df <-
data.frame(address = c("27 King's College Cir, Toronto", "Avenida Joao Pessoa, Porto Alegre"),
country = c("CAN", "BRA"))
here_batch_geocoder(df, search_var = address, country = country, '<YOUR_APP_ID>', '<YOUR_APP_CODE>')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.