{
"cells": [
{
"cell_type": "markdown",
"id": "46526259-6c8e-4325-9f65-3c946167f112",
"metadata": {},
"source": [
"# Detecting return trip\n",
"\n",
"Sometimes, when you have many real-data trajectories, you want to detect the return trips. This tutorial is going to show how to split and reverse one half of it in order to keep the same directions for all the trajectories. The algorithm is based on the comparison of trajectories: the return point corresponds to the point which divides the trace in two and whose distance between the two is the smallest. In tracklib, the function to do this is:\n",
"
\n",
"