<jupyter_start><jupyter_text>Segue local da documentação da biblioteca folium: https://python-visualization.github.io/folium/ Primeiro deve-se instalar o biblioteca Folium<jupyter_code>!pip install folium
# importar biblioteca folium
import folium

# criar lista de pontos em coordenadas latitude e longitude
#points = [[37.4601928, 126.4476917], [37.4593108, 126.4406957], [37.4611508, 126.4432957], [37.4641108, 126.4423957]]
points = [[-2.493696, -44.263902],[-2.494768, -44.261961],[-2.499173, -44.262842],[-2.499068, -44.267026],[-2.498071, -44.271961],[-2.494834, -44.271929]]

# centro das coordenadas (calculo simples aproximado)
l = len(points)
l1=0
l2=0
for index,r in enumerate(points):
    l1 = (points[index][0]+l1)
    l2 = (points[index][1]+l2)
centro = [l1/l,l2/l]

# criar mapa, indicar centro e o nivel de zoom
m = folium.Map(location=centro, zoom_start=15)

# inserir pontos (maker)
for index,r in enumerate(points):
    folium.Marker(points[index],
                  popup=('Ponto{} da lista'.format(index)),
                  icon = folium.Icon(color='green',icon='plus')).add_to(m)

# inserir linhas
folium.PolyLine(points, color='red').add_to(m)

# visualizar mapa
m<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1583264971287941, 'fraction_numerical': 0.14766201804757997, 'mean_word_length': 4.622119815668203, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '423811', 'license': 'MIT', 'n_tokens_mistral': 588, 'n_tokens_neox': 486, 'n_words': 99, 'path': 'Mapa_interativo_muito_simles_com_ponto_e_linha_usando_folium.ipynb', 'repo_name': 'Eudson7/python', 'size': '1219'}