I am trying my hands at grabbing data from an API in R.
The API I am using is the Data Science Toolkit's street2coordinates.
Basically this API returns the coordinates for street addresses. I tried using it and it works fine when I pass just one address. Like This:
library(httr)
GET("http://www.datasciencetoolkit.org/street2coordinates/2543+Graystone+Place%2c+Simi+Valley%2c+CA+93065")
I am not sure how to pass multiple addresses to this function.
I tried doing this but the output is something I don't understand. It's a weird list.
addresses <- c("4600 Vegas Dr, Las Vegas, NV 89108","3600 Vegas Dr, Las Vegas, NV 89108")
url <- GET("http://www.datasciencetoolkit.org/street2coordinates/addresses")
Long story short, I am looking for a way to pass more than one address in the GET function. Is there a way to do this?