Route map: Jarasandh killing


This route map is generated from data returned by /mb/v1/journeys/{name} endpoint, with full details (?expand=true) where {name} = Jarasandh killing.

Route map for Jarasandh killing

The summary journey route is this:

"journeyRoute": [
    "Indraprastha",
    "Kurujangal to Kalakuta",
    "Kalakuta to the east to Mithila",
    "Mithila to Magadh",
    "Girivraj",
    "Girivraj to Indraprastha"
  ]

The detailed route information was obtained by using the ?expand=true query parameter.

The following components were used to generate the map:

The workflow is as follows:

  1. Geocode the place names (GeoPy)
  2. Create point geometries from the coordinates (Shapely)
  3. Store the geometries in a geospatial data frame (GeoPandas)
  4. Create the figure and axes (Matplotlib)
  5. Add the terrain basemap tiles (Contextily)
  6. Plot the locations and export the image (GeoPandas + Matplotlib)