Example of Geocoding With Point Geometry: Georgia#
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 = 'Georgia'
gdf_country = geocode_countries(names=country).inc_res(4).get_boundaries()
gdf = geocode_counties().scope(country).get_centroids()
ggplot() + \
geom_map(data=gdf_country, fill='darkslategray', size=0) + \
geom_point(data=gdf, color='white', size=3, \
tooltips=layer_tooltips().line('@{found name}')) + \
ggsize(800, 600) + ggtitle(country) + \
theme_void()