geocode_states#
- geocode_states(names=None) NamesGeocoder #
Create a NamesGeocoder object for states. Allow to refine ambiguous request with where() method, with a scope that limits area of geocoding or with parents.
- Parameters:
- namesstr or list
Names of objects to be geocoded.
- Returns:
- NamesGeocoder
Geocoder object specification.
Examples
1from IPython.display import display 2from lets_plot import * 3from lets_plot.geo_data import * 4LetsPlot.setup_html() 5states = geocode_states().scope('UK').get_boundaries() 6display(states) 7ggplot() + \ 8 geom_map(aes(fill='found name'), data=states, color='white') + \ 9 ggtitle('UK States')
The geodata is provided by © OpenStreetMap contributors and is made available here under the Open Database License (ODbL).
state found name geometry 0 Wales Wales MULTIPOLYGON (((-4.53074 53.30909, -4.57572 53... 1 Scotland Scotland MULTIPOLYGON (((-7.20352 57.45940, -7.27770 57... 2 England England MULTIPOLYGON (((-5.05355 50.26767, -5.01782 50... 3 Northern Ireland Northern Ireland MULTIPOLYGON (((-8.17751 54.46476, -7.69725 54...