Skip to content

Instantly share code, notes, and snippets.

View rvosa's full-sized avatar
👨‍💻
Researching and coding

Rutger Vos rvosa

👨‍💻
Researching and coding
  • Naturalis Biodiversity Center
  • Leiden, the Netherlands
View GitHub Profile
@rvosa
rvosa / georeferencing.R
Created July 13, 2017 11:57
How to query the Google Maps API for geo-referencing using R
## 2.2 Georeferecing with Google API
# Has a maximum of 2500 requests per day (error: You have exceeded your daily request quota for this API)
rm(list = ls(all=T))
unique.Geodata <- read.csv('Datasets/unique.Geodata.csv', h=T)
head(unique.Geodata)
dim(unique.Geodata) # 22132 10
str(unique.Geodata)
unique.Geodata$LongitudeDD <- as.character(unique.Geodata$LongitudeDD)
unique.Geodata$LatitudeDD <- as.character(unique.Geodata$LatitudeDD)
unique.Geodata$Geodata <- as.character(unique.Geodata$Geodata)