I want to make a Twitter search, specifying the location. I am using the rtweet package. However, when I print the 'lookup_coords' function for the country of Venezuela or the city of Caracas, there are no results. I have followed all advices from previous posts and nothing have helped. I have my own Google Api Key I am working on R, Windows 7.
Is there any possibility to self define the coordinates and assign it to the 'search_tweets' function? How do I know which is the proper syntax for naming every city or country in the world? Is there a list somewhere?
lookup_coords(address = "Venezuela", components = "country:Venezuela", apikey = "XXXXXXX")
the result is:
$place
[1] "Venezuela"
$box
NULL
$point
NULL
attr(,"class")
[1] "coords" "list"
when I check the API, all works fine:
identical(Sys.getenv("GOOGLE_MAPS_KEY"),rtweet:::find_google_geocode_key())
[1] TRUE