{ "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": "2026-01-27T17:09:14.899901Z", "iopub.status.busy": "2026-01-27T17:09:14.899823Z", "iopub.status.idle": "2026-01-27T17:09:14.902599Z", "shell.execute_reply": "2026-01-27T17:09:14.902391Z" } }, "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": "2026-01-27T17:09:14.903539Z", "iopub.status.busy": "2026-01-27T17:09:14.903470Z", "iopub.status.idle": "2026-01-27T17:09:14.905005Z", "shell.execute_reply": "2026-01-27T17:09:14.904808Z" } }, "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": "2026-01-27T17:09:14.905760Z", "iopub.status.busy": "2026-01-27T17:09:14.905692Z", "iopub.status.idle": "2026-01-27T17:09:14.907032Z", "shell.execute_reply": "2026-01-27T17:09:14.906843Z" } }, "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" ] }, { "cell_type": "code", "execution_count": 4, "id": "bd2aa153", "metadata": { "execution": { "iopub.execute_input": "2026-01-27T17:09:14.907746Z", "iopub.status.busy": "2026-01-27T17:09:14.907675Z", "iopub.status.idle": "2026-01-27T17:09:14.948708Z", "shell.execute_reply": "2026-01-27T17:09:14.948373Z" } }, "outputs": [ { "data": { "text/html": [ " \n", " " ], "text/plain": [ "