{ "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": {}, "outputs": [], "source": [ "import pandas as pd\n", "\n", "from lets_plot import *" ] }, { "cell_type": "code", "execution_count": 2, "id": "3142c360", "metadata": {}, "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": {}, "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": {}, "outputs": [ { "data": { "text/html": [ " \n", " " ], "text/plain": [ "