Files
gpx.studio/website/src/lib/docs/cs/toolbar/routing.mdx
vcoppe ed23892541 New Crowdin updates (#30)
* New translations map-controls.mdx (Lithuanian)

* New translations map-controls.mdx (Dutch)

* New translations map-controls.mdx (Norwegian)

* New translations map-controls.mdx (Polish)

* New translations map-controls.mdx (Portuguese)

* New translations map-controls.mdx (Russian)

* New translations map-controls.mdx (Swedish)

* New translations map-controls.mdx (Chinese Simplified)

* New translations map-controls.mdx (Vietnamese)

* New translations map-controls.mdx (Portuguese, Brazilian)

* Update source file map-controls.mdx

* New translations en.json (Dutch)

* New translations en.json (Swedish)

* New translations en.json (Dutch)

* New translations en.json (Swedish)

* New translations files-and-stats.mdx (Dutch)

* New translations getting-started.mdx (Dutch)

* New translations gpx.mdx (Dutch)

* New translations translation.mdx (Dutch)

* New translations map-controls.mdx (Dutch)

* New translations edit.mdx (Dutch)

* New translations file.mdx (Dutch)

* New translations settings.mdx (Dutch)

* New translations toolbar.mdx (Dutch)

* New translations file.mdx (Dutch)

* New translations settings.mdx (Dutch)

* New translations view.mdx (Dutch)

* New translations routing.mdx (Dutch)

* New translations scissors.mdx (Dutch)

* New translations time.mdx (Dutch)

* Update source file en.json

* New translations en.json (Romanian)

* New translations en.json (French)

* New translations en.json (Spanish)

* New translations en.json (Catalan)

* New translations en.json (Czech)

* New translations en.json (German)

* New translations en.json (Greek)

* New translations en.json (Hungarian)

* New translations en.json (Italian)

* New translations en.json (Lithuanian)

* New translations en.json (Dutch)

* New translations en.json (Norwegian)

* New translations en.json (Polish)

* New translations en.json (Portuguese)

* New translations en.json (Russian)

* New translations en.json (Swedish)

* New translations en.json (Chinese Simplified)

* New translations en.json (Vietnamese)

* New translations en.json (Portuguese, Brazilian)

* New translations map-controls.mdx (Portuguese, Brazilian)

* New translations view.mdx (Portuguese, Brazilian)

* New translations minify.mdx (Dutch)

* New translations scissors.mdx (Portuguese, Brazilian)

* New translations en.json (Italian)

* New translations en.json (Catalan)

* New translations gpx.mdx (Dutch)

* New translations funding.mdx (Dutch)

* New translations mapbox.mdx (Dutch)

* New translations en.json (Italian)

* New translations scissors.mdx (Italian)

* New translations en.json (French)

* New translations en.json (French)

* New translations files-and-stats.mdx (Romanian)

* New translations files-and-stats.mdx (French)

* New translations files-and-stats.mdx (Spanish)

* New translations files-and-stats.mdx (Catalan)

* New translations files-and-stats.mdx (Czech)

* New translations files-and-stats.mdx (German)

* New translations files-and-stats.mdx (Greek)

* New translations files-and-stats.mdx (Hungarian)

* New translations files-and-stats.mdx (Italian)

* New translations files-and-stats.mdx (Lithuanian)

* New translations files-and-stats.mdx (Dutch)

* New translations files-and-stats.mdx (Norwegian)

* New translations files-and-stats.mdx (Polish)

* New translations files-and-stats.mdx (Portuguese)

* New translations files-and-stats.mdx (Russian)

* New translations files-and-stats.mdx (Swedish)

* New translations files-and-stats.mdx (Chinese Simplified)

* New translations files-and-stats.mdx (Vietnamese)

* New translations files-and-stats.mdx (Portuguese, Brazilian)

* New translations edit.mdx (French)

* New translations file.mdx (French)

* New translations view.mdx (Romanian)

* New translations view.mdx (French)

* New translations view.mdx (Spanish)

* New translations view.mdx (Catalan)

* New translations view.mdx (Czech)

* New translations view.mdx (German)

* New translations view.mdx (Greek)

* New translations view.mdx (Hungarian)

* New translations view.mdx (Italian)

* New translations view.mdx (Lithuanian)

* New translations view.mdx (Dutch)

* New translations view.mdx (Norwegian)

* New translations view.mdx (Polish)

* New translations view.mdx (Portuguese)

* New translations view.mdx (Russian)

* New translations view.mdx (Swedish)

* New translations view.mdx (Chinese Simplified)

* New translations view.mdx (Vietnamese)

* New translations view.mdx (Portuguese, Brazilian)

* Update source file files-and-stats.mdx

* Update source file view.mdx

* New translations en.json (French)

* New translations settings.mdx (Romanian)

* New translations settings.mdx (French)

* New translations settings.mdx (Spanish)

* New translations settings.mdx (Catalan)

* New translations settings.mdx (Czech)

* New translations settings.mdx (German)

* New translations settings.mdx (Greek)

* New translations settings.mdx (Hungarian)

* New translations settings.mdx (Italian)

* New translations settings.mdx (Lithuanian)

* New translations settings.mdx (Dutch)

* New translations settings.mdx (Norwegian)

* New translations settings.mdx (Polish)

* New translations settings.mdx (Portuguese)

* New translations settings.mdx (Russian)

* New translations settings.mdx (Swedish)

* New translations settings.mdx (Chinese Simplified)

* New translations settings.mdx (Vietnamese)

* New translations settings.mdx (Portuguese, Brazilian)

* New translations view.mdx (French)

* New translations toolbar.mdx (French)

* New translations clean.mdx (French)

* New translations routing.mdx (French)

* Update source file settings.mdx

* New translations clean.mdx (French)

* New translations extract.mdx (French)

* New translations merge.mdx (French)

* New translations minify.mdx (French)

* New translations poi.mdx (French)

* New translations routing.mdx (French)

* New translations scissors.mdx (French)

* New translations time.mdx (French)

* New translations en.json (French)

* New translations files-and-stats.mdx (French)

* New translations gpx.mdx (French)

* New translations funding.mdx (French)

* New translations integration.mdx (French)

* New translations map-controls.mdx (Romanian)

* New translations map-controls.mdx (French)

* New translations map-controls.mdx (Spanish)

* New translations map-controls.mdx (Catalan)

* New translations map-controls.mdx (Czech)

* New translations map-controls.mdx (German)

* New translations map-controls.mdx (Greek)

* New translations map-controls.mdx (Hungarian)

* New translations map-controls.mdx (Italian)

* New translations map-controls.mdx (Lithuanian)

* New translations map-controls.mdx (Dutch)

* New translations map-controls.mdx (Norwegian)

* New translations map-controls.mdx (Polish)

* New translations map-controls.mdx (Portuguese)

* New translations map-controls.mdx (Russian)

* New translations map-controls.mdx (Swedish)

* New translations map-controls.mdx (Chinese Simplified)

* New translations map-controls.mdx (Vietnamese)

* New translations map-controls.mdx (Portuguese, Brazilian)

* New translations settings.mdx (French)

* New translations view.mdx (French)

* New translations routing.mdx (Romanian)

* New translations routing.mdx (French)

* New translations routing.mdx (Spanish)

* New translations routing.mdx (Catalan)

* New translations routing.mdx (Czech)

* New translations routing.mdx (German)

* New translations routing.mdx (Greek)

* New translations routing.mdx (Hungarian)

* New translations routing.mdx (Italian)

* New translations routing.mdx (Lithuanian)

* New translations routing.mdx (Dutch)

* New translations routing.mdx (Norwegian)

* New translations routing.mdx (Polish)

* New translations routing.mdx (Portuguese)

* New translations routing.mdx (Russian)

* New translations routing.mdx (Swedish)

* New translations routing.mdx (Chinese Simplified)

* New translations routing.mdx (Vietnamese)

* New translations routing.mdx (Portuguese, Brazilian)

* Update source file map-controls.mdx

* Update source file routing.mdx

* New translations en.json (French)

* New translations getting-started.mdx (French)

* New translations map-controls.mdx (French)

* New translations map-controls.mdx (Italian)

* New translations routing.mdx (Italian)

* New translations en.json (Italian)

* New translations en.json (Chinese Simplified)

* New translations files-and-stats.mdx (Chinese Simplified)

* New translations view.mdx (Chinese Simplified)

* New translations en.json (Chinese Simplified)

* New translations translation.mdx (Italian)

* New translations menu.mdx (Italian)

* New translations edit.mdx (Italian)

* New translations settings.mdx (Italian)

* New translations en.json (Italian)

* New translations routing.mdx (Italian)

* New translations settings.mdx (Portuguese, Brazilian)

* New translations view.mdx (Portuguese, Brazilian)

* New translations en.json (Spanish)

* New translations files-and-stats.mdx (Spanish)

* New translations map-controls.mdx (Spanish)

* New translations settings.mdx (Spanish)

* New translations view.mdx (Spanish)

* New translations routing.mdx (Spanish)

* New translations scissors.mdx (Spanish)

* New translations mapbox.mdx (Dutch)

* New translations mapbox.mdx (Dutch)

* New translations integration.mdx (Dutch)

* New translations map-controls.mdx (Dutch)

* New translations en.json (Catalan)

* New translations funding.mdx (Catalan)

* New translations translation.mdx (Catalan)

* New translations settings.mdx (Catalan)

* New translations mapbox.mdx (Dutch)

* New translations map-controls.mdx (Dutch)

* New translations menu.mdx (Dutch)

* New translations file.mdx (Dutch)

* New translations view.mdx (Dutch)

* New translations view.mdx (Dutch)

* New translations toolbar.mdx (Dutch)

* New translations clean.mdx (Dutch)

* New translations extract.mdx (Dutch)

* New translations merge.mdx (Dutch)

* New translations minify.mdx (Dutch)

* New translations minify.mdx (Dutch)

* New translations poi.mdx (Dutch)

* New translations en.json (Dutch)

* New translations poi.mdx (Dutch)

* New translations routing.mdx (Dutch)

* New translations routing.mdx (Dutch)

* New translations en.json (Dutch)

* New translations routing.mdx (Dutch)

* New translations en.json (Dutch)

* New translations files-and-stats.mdx (Dutch)

* New translations funding.mdx (Dutch)

* New translations map-controls.mdx (Dutch)

* New translations settings.mdx (Dutch)

* New translations view.mdx (Dutch)

* New translations routing.mdx (Dutch)

* New translations en.json (Polish)

* New translations en.json (Polish)

* New translations funding.mdx (Italian)

* New translations funding.mdx (Italian)

* New translations mapbox.mdx (Italian)

* New translations translation.mdx (Italian)
2024-08-05 14:06:57 +02:00

86 lines
3.9 KiB
Plaintext

---
title: Route planning and editing
---
<script>
import { Pencil, Route, Bike, TriangleAlert, ArrowRightLeft, Home, Repeat, Trash2, CirclePlay, SquareArrowUpLeft } from 'lucide-svelte';
import DocsNote from '$lib/components/docs/DocsNote.svelte';
import Routing from '$lib/components/toolbar/tools/routing/Routing.svelte';
import routingScreenshot from '$lib/assets/img/docs/tools/routing.png?enhanced';
import DocsImage from '$lib/components/docs/DocsImage.svelte';
</script>
# <Pencil size="24" class="inline-block" style="margin-bottom: 5px" /> { title }
The route planning and editing tool allows you to create and edit routes by placing or moving anchor points on the map.
## Settings
As shown below, the tool dialog contains a few settings to control the routing behavior.
You can minimize the dialog to save space by clicking on <button><SquareArrowUpLeft size="16" class="inline-block" style="margin-bottom: 2px" /></button>.
<div class="flex flex-row justify-center">
<Routing minimizable={false} class="text-foreground p-3 border rounded-md shadow-lg" />
</div>
### <Route size="16" class="inline-block" style="margin-bottom: 2px" /> Routing
When routing is enabled, anchor points placed or moved on the map will be connected by a route calculated on the <a href="https://www.openstreetmap.org" target="_blank">OpenStreetMap</a> road network.
Disable routing to connect anchor points with straight lines.
This setting can also be toggled by pressing <kbd>F5</kbd>.
### <Bike size="16" class="inline-block" style="margin-bottom: 2px" /> Activity
Select the activity type to tailor the routes for.
### <TriangleAlert size="16" class="inline-block" style="margin-bottom: 2px" /> Allow private roads
When enabled, the routing engine will consider private roads when computing routes.
<DocsNote type="warning">
Only use this option if you have local knowledge of the area and have permission to use the roads in question.
</DocsNote>
## Plotting and editing routes
Creating a route or extending an existing one is as simple as clicking on the map to place a new anchor point.
You can also drag an existing anchor point to reroute the segment connecting it with the previous and next anchor point.
Furthermore, new anchor points can be inserted between existing ones by hovering over the segment connecting them and dragging the anchor point that appears to the desired location.
On touch devices, you can tap on the segment to insert a new anchor point.
<DocsNote>
When editing imported GPX files, an initial set of anchor points is created automatically.
To ease the editing process, the more the map is zoomed in, the more anchor points are displayed.
This allows the route to be edited at different levels of detail.
</DocsNote>
Finally, you can delete anchor points by clicking on them and selecting <button><Trash2 size="16" class="inline-block" style="margin-bottom: 4px" /> Delete</button> from the context menu.
<DocsImage src={routingScreenshot} alt="Anchor points allow you to easily edit a route." />
## Additional tools
The following tools automate some common route modification operations.
### <ArrowRightLeft size="16" class="inline-block" style="margin-bottom: 2px" /> Reverse
Reverse the direction of the route.
### <Home size="16" class="inline-block" style="margin-bottom: 2px" /> Back to start
Connect the last point of the route with the starting point, using the chosen routing settings.
### <Repeat size="16" class="inline-block" style="margin-bottom: 2px" /> Round trip
Return to the starting point by the same route.
### <CirclePlay size="16" class="inline-block" style="margin-bottom: 2px" /> Change the start of the loop
When the end point of the route is close enough to the start, you can change the start of the loop by clicking on any anchor point and selecting <button><CirclePlay size="16" class="inline-block" style="margin-bottom: 2px" /> Start loop here</button> from the context menu.