{ "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-04-17T07:34:36.616864Z", "iopub.status.busy": "2024-04-17T07:34:36.616785Z", "iopub.status.idle": "2024-04-17T07:34:36.938295Z", "shell.execute_reply": "2024-04-17T07:34:36.937831Z" } }, "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-04-17T07:34:36.939819Z", "iopub.status.busy": "2024-04-17T07:34:36.939679Z", "iopub.status.idle": "2024-04-17T07:34:36.941808Z", "shell.execute_reply": "2024-04-17T07:34:36.941637Z" } }, "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-04-17T07:34:36.942947Z", "iopub.status.busy": "2024-04-17T07:34:36.942791Z", "iopub.status.idle": "2024-04-17T07:34:36.944185Z", "shell.execute_reply": "2024-04-17T07:34:36.944006Z" } }, "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-04-17T07:34:36.945290Z", "iopub.status.busy": "2024-04-17T07:34:36.945152Z", "iopub.status.idle": "2024-04-17T07:34:36.977210Z", "shell.execute_reply": "2024-04-17T07:34:36.976926Z" } }, "outputs": [ { "data": { "text/html": [ " \n", " " ], "text/plain": [ "