Example of Geocoding of States: Russia#
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()
country = 'Russia'
gdf = geocode_states().scope(country).get_boundaries()
ggplot() + \
geom_map(data=gdf, color='white', fill='gray30', \
tooltips=layer_tooltips().line('@{found name}')) + \
ggsize(800, 600) + ggtitle('{0} States'.format(country)) + \
theme_void()