Here’s an example of using web services to source data & processing from 3rd parties. I queried Yelp for top venues, used Google Maps to retrieve a distance matrix. I then used an R package TSP to calculate the optimal route. Finally plotting the route on Google Maps.
I presented this at ManchesterR in Feb-15. Slides are available here
Code walk-through can be found on Rpubs