title: How to iterate through url in R?
body: <p>I'm trying to iterate through a url with different coordinates. The url I want to iterate through is the Google Api textsearch.</p>
  
  <p>This is an example of a textsearch url and its parameters. I need to iterate in the location parameter.</p>
  
  <p><a href="https://maps.googleapis.com/maps/api/place/textsearch/json?query=123+main+street&amp;location=42.3675294,-71.186966&amp;radius=10000&amp;key=YOUR_API_KEY" rel="nofollow noreferrer">https://maps.googleapis.com/maps/api/place/textsearch/json?query=123+main+street&amp;location=42.3675294,-71.186966&amp;radius=10000&amp;key=YOUR_API_KEY</a></p>
  
  <p>I have a dataframe with columns for latitude and longitude. Suppose its called Cords.</p>
  
  <p>Using the language R, I want to do something like this:</p>
  
  <pre><code>for i in 1:length(Cords$lat){
      lat = Cords$lat[i]
      lon = Cords$lon[i] 
      https://maps.googleapis.com/maps/api/place/textsearch/json?query=123+main+street&amp;location=lat,lon&amp;radius=10000&amp;key=YOUR_API_KEY
  }
  </code></pre>
  
  <p>I store each iteration in another dataframe, I didn't include that code.</p>