How to visualize geo coordinates with ipyleaflet

As mentioned in Curriculum Vitae for Data Scientists it can be a good idea to visualize your skills and work experience. I’ve also tried to visualize the location of my work places with geopandas but I came across a more fancy solution called ipyleaflet

Installation

pip install ipyleaflet

Visualizing geo coordinates

from ipyleaflet import Map, Marker, basemaps, basemap_to_tiles

m = Map(
    basemap=basemaps.OpenStreetMap.Mapnik,
    center=(52, 8),
    zoom=5
)
cities = {  "Bad Oeynhausen":
              { "latitude":52.207851, "longitude":8.804030},
            "Detmold":
              { "latitude":51.936284, "longitude":8.879153},
            "Coburg":
              { "latitude":50.258112, "longitude":10.964463},
            "Bochum":
              { "latitude":51.481811, "longitude":7.219664},
            "Karlsbad":
               { "latitude":48.881417, "longitude":8.507199},
            "Nürnberg":
               { "latitude":49.447537, "longitude":11.102352},
             "Erlangen - Tennenlohe":
               { "latitude":49.547055, "longitude":11.015774}
          }

for city, coordinates in cities.items():

    m.add_layer(Marker(location=(coordinates["latitude"], coordinates["longitude"])))

m

The result: