This post shows how to use Google Maps’ API with R making some tweaks to this function. Combine the first part…