Using R to find and save random routes in a given shapefile using Google's distance matrix API