{ "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": "2024-08-23T10:39:30.670680Z", "iopub.status.busy": "2024-08-23T10:39:30.670591Z", "iopub.status.idle": "2024-08-23T10:39:30.991777Z", "shell.execute_reply": "2024-08-23T10:39:30.991318Z" } }, "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": "2024-08-23T10:39:30.993411Z", "iopub.status.busy": "2024-08-23T10:39:30.993301Z", "iopub.status.idle": "2024-08-23T10:39:30.995503Z", "shell.execute_reply": "2024-08-23T10:39:30.995263Z" } }, "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": "2024-08-23T10:39:30.996513Z", "iopub.status.busy": "2024-08-23T10:39:30.996444Z", "iopub.status.idle": "2024-08-23T10:39:30.998001Z", "shell.execute_reply": "2024-08-23T10:39:30.997769Z" } }, "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": "2024-08-23T10:39:30.998949Z", "iopub.status.busy": "2024-08-23T10:39:30.998877Z", "iopub.status.idle": "2024-08-23T10:39:31.030325Z", "shell.execute_reply": "2024-08-23T10:39:31.029946Z" } }, "outputs": [ { "data": { "text/html": [ " \n", " " ], "text/plain": [ "