PolygonFromEncoded#

Create a Polygon directly from an encoded polyline string. To understand the encoding algorithm refer to this link.

[2]:
m = folium.Map(location=[40, -80], zoom_start=5)

encoded =  r"w`j~FpxivO}jz@qnnCd}~Bsa{@~f`C`lkH"
plugins.PolygonFromEncoded(encoded=encoded).add_to(m)

m
[2]:
Make this Notebook Trusted to load map: File -> Trust Notebook