Skip to content

Instantly share code, notes, and snippets.

Avatar

Roland Hansson rhansson

View GitHub Profile
@rhansson
rhansson / example_getpoints.R
Last active Feb 11, 2017
GeoTuple API access from R
View example_getpoints.R
# Download JSON via GeoTuple API
# http://geotuple.org//pages/api.html
library(jsonlite)
library(httr)
# Thanks to http://stackoverflow.com/users/5729528/daeyoung-kim
# for this function
getFunctionEndPoint <- function(url, format) {
return(paste(url, format, sep = '/'))