Geocoding with osmdata in R

In a previous post I demonstrated how one can generate map-based heatmap distribution plots using the Leaflet package in R. In that example I implemented a function that sends locations as strings to a Open Street Map API and then receives latitude and longitude coordinates as return values in JSON-format. In this post I will […]

Introduction to Leaflet heatmaps in R

In this code example I use a geocoding function found on datascienceplus to geocode Google trends search intensity data, comparing search trend by city name for “Burger” and “Pizza” in Germany. I then visualize the results with heatmaps, generated with the Leaflet package in R. Geocoding input data using Open Street Map API In below […]