{ "cells": [ { "cell_type": "markdown", "id": "182ed456", "metadata": {}, "source": [ "# Param `geodesic` in `geom_segment()` and `geom_path()`\n", "\n", "With `geodesic=True` a segment will be transformed to a curve representing the shortest path between two points on the surface of Earth.\n", "\n", "Note that this parameter only works when functions `geom_path()` and `geom_segment()` are used in combination with `geom_livemap()`." ] }, { "cell_type": "code", "execution_count": 1, "id": "bf3b27bb", "metadata": { "execution": { "iopub.execute_input": "2025-11-05T13:48:39.482296Z", "iopub.status.busy": "2025-11-05T13:48:39.482196Z", "iopub.status.idle": "2025-11-05T13:48:39.485583Z", "shell.execute_reply": "2025-11-05T13:48:39.485296Z" } }, "outputs": [], "source": [ "import pandas as pd\n", "\n", "from lets_plot import *" ] }, { "cell_type": "code", "execution_count": 2, "id": "3142c360", "metadata": { "execution": { "iopub.execute_input": "2025-11-05T13:48:39.486591Z", "iopub.status.busy": "2025-11-05T13:48:39.486520Z", "iopub.status.idle": "2025-11-05T13:48:39.488314Z", "shell.execute_reply": "2025-11-05T13:48:39.488115Z" } }, "outputs": [ { "data": { "text/html": [ "\n", "
\n", " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "LetsPlot.setup_html()" ] }, { "cell_type": "code", "execution_count": 3, "id": "fd755b60", "metadata": { "execution": { "iopub.execute_input": "2025-11-05T13:48:39.489100Z", "iopub.status.busy": "2025-11-05T13:48:39.489035Z", "iopub.status.idle": "2025-11-05T13:48:39.490376Z", "shell.execute_reply": "2025-11-05T13:48:39.490188Z" } }, "outputs": [], "source": [ "LetsPlot.set(maptiles_lets_plot(theme='dark'))" ] }, { "cell_type": "markdown", "id": "7920c2c6", "metadata": {}, "source": [ "#### By Default, a Segment on Map is a Straight Line\n" ] }, { "cell_type": "code", "execution_count": 4, "id": "bd2aa153", "metadata": { "execution": { "iopub.execute_input": "2025-11-05T13:48:39.491059Z", "iopub.status.busy": "2025-11-05T13:48:39.490991Z", "iopub.status.idle": "2025-11-05T13:48:39.518808Z", "shell.execute_reply": "2025-11-05T13:48:39.518598Z" } }, "outputs": [ { "data": { "text/html": [ " \n", " " ], "text/plain": [ "