Skip to content

Commit a642f92

Browse files
Merge pull request #100 from OpenSPP/update_farmer_docs
add GIS integration documentation for farmer registry
2 parents ecb4cba + 2cc6fa4 commit a642f92

21 files changed

Lines changed: 77 additions & 78 deletions
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Integrate geolocation
2+
3+
This guide provides step-by-step instructions for integrating geolocation platforms such as MapTiler with the OpenSPP Farmer Registry module to enhance area-based functionality.
4+
5+
## Prerequisites
6+
To enable geolocation integration in OpenSPP, ensure the following:
7+
- Your user account has the System Admin role. Learn more in this guide: {doc}`user_access`.
8+
- Your OpenSPP instance has the Farmer Registry base module installed. Learn more in this guide: {doc}`../../getting_started/farmer_installation`.
9+
- You have an API key for MapTiler to enable GIS functionality. You can retrieve this by checking their documentation [here](https://docs.maptiler.com/cloud/api/).
10+
- Developer mode in OpenSPP is enabled to allow configuration of the MapTiler key. For details, refer to the {doc}`../../developer_guide/developer_mode`.
11+
12+
## Objective
13+
By the end of this guide, you will have configured MapTiler integration to enable area-based features in the Farmer Registry and will learn how to add, edit, and remove farm geolocation data using the map tools.
14+
15+
## Process
16+
17+
### Setting Up the API Key for MapTiler
18+
As a System Admin, log in to your OpenSPP Farmer Registry instance. Go to **Settings**, then select **Technical**, and click **System Parameters**.
19+
20+
![Settings menu with Technical and System Parameters options](farmer_geolocation/farmer_geolocation_system_parameters.png)
21+
22+
Click the **New** button. Set the Key field to **spp_base_gis.map_tiler_api_key** and enter your MapTiler API key in the **value** field.
23+
24+
![Setup farmer registry maptiler key](farmer_geolocation/farmer_geolocation_maptiler_key.png)
25+
26+
```{note}
27+
Keep your API key secure. Avoid sharing it publicly or storing it in version control systems.
28+
```
29+
30+
Click the **Save** button to apply the configuration. Refresh your browser to see the changes.
31+
32+
### Add Geolocation Data
33+
34+
After setting up the API key for the geolocation platform, navigate to the Registry and click an existing farm group, then open the **Farm Details** tab.
35+
36+
![Farm details tab](farmer_geolocation/farmer_geolocation_farm_details.png)
37+
38+
#### Add Address Coordinates
39+
40+
Under the **Farm Details** tab, click **Address Coordinates**.
41+
42+
Click the Marker tool once, then select a location on the map to add a pin for the farm.
43+
44+
![Marker button](farmer_geolocation/farmer_geolocation_marker_button.png)
45+
46+
You can also click the **Find My Location** button to center the map on your current location.
47+
48+
![Find my location button](farmer_geolocation/farmer_geolocation_find_my_location.png)
49+
50+
#### Add Farm Land
51+
52+
Under the **Farm Details** tab, click **Farm Land**.
53+
54+
Click the polygon tool once, then click the map to add vertices until the area is outlined; double-click the final point to close the polygon.
55+
56+
![polygon tool](farmer_geolocation/farmer_geolocation_polygon_tool.png)
57+
58+
You can also click the **Find My Location** button to center the map on your current location.
59+
60+
![Find my location button](farmer_geolocation/farmer_geolocation_find_my_location.png)
61+
62+
### Remove Geolocation Data
63+
64+
To remove geolocation data, navigate to the **Farm Details** tab, then open the tab for either **Address Coordinates** or **Farm Land**.
65+
66+
Click the trash icon to remove the geolocation data.
67+
68+
![Delete button](farmer_geolocation/farmer_geolocation_delete_button.png)
69+
70+
```{note}
71+
- The trash icon appears only when there is existing map data.
72+
- Deletion cannot be undone.
73+
```
15.8 KB
Loading
117 KB
Loading
23.1 KB
Loading

docs/user_guide/registry_management/setting_up_farmer_registry/setup_farmer_registry_maptiler_key.png renamed to docs/user_guide/administration/farmer_geolocation/farmer_geolocation_maptiler_key.png

File renamed without changes.
151 KB
Loading
85.4 KB
Loading

docs/user_guide/registry_management/setting_up_farmer_registry/5.png renamed to docs/user_guide/administration/farmer_geolocation/farmer_geolocation_system_parameters.png

File renamed without changes.

docs/user_guide/administration/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ This section provides guides for a variety of administrative tasks and system ma
1515

1616
- {doc}`inventory_configuration`: Learn how to configure the necessary inventory settings to support in-kind and basket entitlements.
1717

18+
- {doc}`farmer_geolocation`: Guide to enabling geolocation integration in the OpenSPP Farmer Registry to improve area-based operations.
19+
1820
- {doc}`incoming_email_configuration`: A guide to setting up automatic email retrieval and processing from a designated incoming mailbox.
1921

2022
- {doc}`outgoing_email_configuration`: A guide to setting up outgoing email servers for automated messaging and data integration.
@@ -41,6 +43,7 @@ User access <user_access>
4143
Custom fields <custom_fields>
4244
Indicator fields <indicator_fields>
4345
Import areas <import_areas>
46+
Integrate geolocation <farmer_geolocation>
4447
Service points <service_points>
4548
Inventory setup <inventory_configuration>
4649
Incoming email setup <incoming_email_configuration>

docs/user_guide/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Guides for managing registrant data and registry operations:
99

1010
- {doc}`registry_management/register_individual`
1111
- {doc}`registry_management/import_export_registrant_data`
12-
- {doc}`registry_management/setting_up_farmer_registry`
1312
- {doc}`registry_management/identity_management`
1413
- {doc}`registry_management/using_change_requests`
1514
- {doc}`registry_management/using_event_data`
@@ -37,6 +36,7 @@ Administrative tasks and system management:
3736
- {doc}`administration/indicator_fields`
3837
- {doc}`administration/import_areas`
3938
- {doc}`administration/inventory_configuration`
39+
- {doc}`administration/farmer_geolocation`
4040
- {doc}`administration/incoming_email_configuration`
4141
- {doc}`administration/outgoing_email_configuration`
4242
- {doc}`administration/hardware_integration`

0 commit comments

Comments
 (0)