|
| 1 | +# How to Use Tracking in Mergin Maps Input |
| 2 | +<SinceBadge type="App" version="2.3.0" /> |
| 3 | + |
| 4 | +Position tracking is useful when you want to record your tracks during the field survey. This can help you know the extent of areas you have already surveyed in addition to the surveyed features. |
| 5 | + |
| 6 | +## Set up tracking in QGIS project |
| 7 | +Tracking needs to be enabled in QGIS when [preparing your <MainPlatformName /> project](../../gis/features/#tracking). |
| 8 | + |
| 9 | +1. Open your <MainPlatformName /> project in QGIS |
| 10 | +2. Navigate to **Project** > **Properties** |
| 11 | +  |
| 12 | + |
| 13 | +3. In the <MainPlatformName /> tab, check the **Enable tracking** option. |
| 14 | +  |
| 15 | + |
| 16 | + You can also choose how often the position should be recorded. |
| 17 | + |
| 18 | + This affects the accuracy of the tracking and it may affect the battery usage: for longer surveys that don't require high accuracy, you may want to choose the **Low** option. If you need to have more detailed tracking, choose **Best** available accuracy. |
| 19 | + |
| 20 | +4. Don't forget to save and synchronise your project! |
| 21 | + |
| 22 | +Enabled tracking means that a new line layer for tracking will be created in your <MainPlatformName /> project called `tracking_layer.gpkg`. This layer is created with a set of fields with set up [default values](../../layer/settingup_forms_settings/#default-values): |
| 23 | + |
| 24 | + |
| 25 | +| Field name | Data Type | Default variable | Description | |
| 26 | +|--------------------------|----------------|------------------------|--------------------------------------| |
| 27 | +| `tracking_start_time` | DateTime | `@tracking_start_time` | Date and time when tracking started | |
| 28 | +| `tracking_end_time` | DateTime | `@tracking_end_time` | Date and time when tracking ended | |
| 29 | +| `total_distance` | Real | `$length` | Tracked distance | |
| 30 | +| `tracked_by` | String | `@mergin_username` | Name of the current <MainPlatformNameLink /> user | |
| 31 | + |
| 32 | +You can add new fields as needed, however, they should be set up with automatically generated [default values](../../layer/settingup_forms_settings/#default-values) as <MobileAppName /> will not open the form for manual inputs. You may use some of the QGIS functions, [extra position variables](../../layer/position_variables/) or [extra QGIS variables](../../layer/plugin-variables/). |
| 33 | + |
| 34 | +## Using tracking in Mergin Maps Input |
| 35 | + |
| 36 | +To use tracking in <MobileAppName />, make sure that you enabled tracking in the QGIS project's settings. |
| 37 | + |
| 38 | +1. Tap **More** and select the **Position tracking** option. |
| 39 | +  |
| 40 | + |
| 41 | +2. Tap **Start tracking**. You can capture and edit features in the usual way even during the tracking. |
| 42 | +  |
| 43 | + |
| 44 | +3. To stop tracking, go to **Position tracking** option and tap **Stop tracking** |
| 45 | +  |
0 commit comments