Description Usage Arguments Details Value See Also Examples
call_geonames()
is a wrapper to call the Geonames database
and retrieve latitude and longitude for a given location
1 2 3 4 5 6 | call_geonames(
location,
country = "",
continent = "",
bypass_first_attempts = FALSE
)
|
location |
A placename. |
country |
A country name, useful for those towns appearing in multiple countries, Default: ” |
continent |
A continent name, useful for the same reason as the
|
bypass_first_attempts |
Logical. Whether to go straight to the fallback Default: FALSE |
continent
parameter is ignored if a first attempt with it
fails.
A named list latitude, longitude)
, where each value is either
a double
or NA
.
POST
read_xml
html_nodes
,html_text
1 2 3 4 5 6 7 | ## Not run:
if(interactive()){
call_geonames('Paris', 'France')
call_geonames('Istanbul', 'Turkey', 'Asia')# Still works despite geonames placing it in Europe
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.