Example of Geocoding of Cities: New York City#
from lets_plot.geo_data import *
from lets_plot import *
The geodata is provided by © OpenStreetMap contributors and is made available here under the Open Database License (ODbL).
LetsPlot.setup_html()
city = 'New York'
gdf = geocode_cities(names=city).get_boundaries()
ggplot() + \
geom_map(data=gdf, color='white', fill='deepskyblue') + \
ggsize(800, 600) + ggtitle(city) + \
theme_void()