update_geonames | R Documentation |
Downloading and indexing a fresh version of the GeoNames database from the provided URL
update_geonames(tasks = get_tasks())
tasks |
Tasks object for reporting progress and error messages, default: get_tasks() |
Run a one shot task to download and index a local copy of the GeoNames database. The GeoNames geographical database covers all countries and contains over eleven million place names that are available; Creative Commons Attribution 4.0 License.
The URL to download the database from is set on the configuration tab of the Shiny app, in case it changes.
The indexing is developed in Spark and Lucene
A prerequisite to this function is that the search_loop
must already have stored collected tweets in the search folder and that the task download_dependencies
has been successfully run.
Normally this function is not called directly by the user but from the detect_loop
function.
The list of tasks updated with produced messages
download_dependencies
detect_loop
get_tasks
if(FALSE){
library(epitweetr)
# setting up the data folder
message('Please choose the epitweetr data directory')
setup_config(file.choose())
# geolocating last tweets
tasks <- update_geonames()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.