Try using the library folium that displays data on a map in google colab ..
--Sample 1 (See the map of Tokyo Station) --parm1: location [latitude, longitude] --parm2: zom_start = 18 (can be scaled from 0 to 18)
folium_01.py
import folium
map_ = folium.Map(location=[35.681384, 139.766073], zoom_start=18)
map_

--Sample 2 (Mac the Keikyu Line station)
folium_02.py
import folium
#Define the latitude and longitude from Sengakuji Temple to Yokohama on the Keikyu Line
kk_ekis = [
           ['Sengakuji Temple',35.638692,139.74002],
           ['Shinagawa',35.630152,139.74044],
           ['Kitashinagawa',35.622716,139.739152],
           ['Shimbamba',35.61762,139.741366],
           ['Aomono Yokocho',35.609351,139.742905],
           ['Samezu',35.605144,139.742547],
           ['Tachiaigawa',35.598453,139.738803],
           ['Omori coast',35.587695,139.735465],
           ['Heiwajima',35.579074,139.734996],
           ['Omorimachi',35.572622,139.732169],
           ['Umeyashiki',35.567042,139.728341],
           ['Keikyu Kamata',35.560685,139.723731],
           ['Miscellaneous colors',35.549911,139.715199],
           ['Rokugodote',35.540893,139.707789],
           ['Keikyu Kawasaki',35.532833,139.700896],
           ['HatchÅnawate',35.523113,139.691488],
           ['Tsurumi Market',35.51783,139.686592],
           ['Keikyu Tsurumi',35.50729,139.678098],
           ['In front of Kagetsuen',35.500413,139.67301],
           ['Namamugi',35.495297,139.666969],
           ['Keikyu Shinkoyasu',35.487106,139.65554],
           ['Koyasu',35.484959,139.645635],
           ['Kanagawa Shinmachi',35.481462,139.640158],
           ['Nakakido',35.477312,139.634489],
           ['Kanagawa',35.471399,139.627467],
           ['Yokohama',35.466188,139.622715]]
#Attach a Mac for each station to the map
for kk_eki in kk_ekis:
    folium.Marker([kk_eki[1], kk_eki[2]], popup=kk_eki[0]).add_to(map_)   
map_

Recommended Posts