{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "f3a32b1b-c1e8-4b8d-b749-c9364c7af968", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "The geodata is provided by © OpenStreetMap contributors and is made available here under the Open Database License (ODbL).\n" ] }, { "data": { "text/html": [ "\n", " \n", " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "import numpy as np\n", "from lets_plot import *\n", "from lets_plot.geo_data import *\n", "LetsPlot.setup_html()" ] }, { "cell_type": "code", "execution_count": 2, "id": "58478275-a3d6-4c7b-ab7e-7a9468eed37b", "metadata": {}, "outputs": [], "source": [ "cities = geocode_cities(['Berlin', 'Sankt-Peterburg', 'Washington', 'Mbarara'])" ] }, { "cell_type": "markdown", "id": "c1f79f8c-913d-4b38-a238-646b84ecdaba", "metadata": {}, "source": [ "#### The space between the point and the text is different for each object and gets bigger closer to the poles." ] }, { "cell_type": "code", "execution_count": 3, "id": "5b348087-af83-4b2b-b9f7-eeca2ef6bd3f", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " " ], "text/plain": [ "