Skip to content
← Back to Erdigo
ERDIGO / DEVELOPERS

Build on your map with Erdigo SDK

Turn a sensor, a field script or a desktop tool into a source of pins, notes, photos and tracks on your map.

Source on GitHub ↗

This SDK writes to a paired receiver on the same local network. It is not a cloud API and cannot read your map or location history. The mock records requests in memory; it does not display an Erdigo map.

Try your first connection

App and SDK requirements differ. Swift targets macOS 12+; the Windows SDK uses .NET 8. No NuGet package is published yet: reference the source project. Feature availability varies by app version and platform.

Commands stay in their original syntax in every language. Replace PORT and file paths before running them.

macOS 12+ · Swift / Xcode command-line tools

1. Clone the repository

git clone https://github.com/Ziorentia/Erdigo-sdk.git
cd Erdigo-sdk

2. Start the mock in terminal A

swift run erdigo-send serve --mock

3. Pair from terminal B

Use the same working folder in both terminals. Replace PORT with the port printed by the mock. Enter the pairing code only when prompted; compare the full receiver key with terminal A and type yes only if it matches. Keep terminal A running.

swift run erdigo-send pair --host 127.0.0.1 --port PORT --name "My field tool" --kinds pin,note,photo,track --label demo --profile website-demo

4. Send your first pin

swift run erdigo-send pin --host 127.0.0.1 --port PORT --profile website-demo --id sensor-1 --lat 51.5074 --lon -0.1278 --title "Greenhouse sensor"

In terminal A, type devices, then items followed by the displayed device ID (for example items 1). You should see the new pin. This confirms the SDK-to-mock path, not a connection to the released app.

Three practical experiments

Run these after pairing above. Use the same platform command prefix, profile and PORT. The coordinates and text are sample data; the scripts do not read a real sensor or GPS.

01 / A sensor location with a field note

Place a greenhouse sensor on the map and add a separate maintenance note. Change the sample coordinates to your site when you connect a supported app.

swift run erdigo-send pin --host 127.0.0.1 --port PORT --profile website-demo --id sensor-1 --lat 51.5074 --lon -0.1278 --title "Greenhouse sensor"
swift run erdigo-send note --host 127.0.0.1 --port PORT --profile website-demo --id maintenance-1 --lat 51.5074 --lon -0.1278 --text "Check the vent at 15:00."

02 / A short GPS track

Append two sample points to the same track ID, then finish it. A real integration would supply your GPS coordinates and capture times instead.

swift run erdigo-send track-add --host 127.0.0.1 --port PORT --profile website-demo --id field-walk --lat 51.5074 --lon -0.1278 --title "Site walk"
swift run erdigo-send track-add --host 127.0.0.1 --port PORT --profile website-demo --id field-walk --lat 51.5080 --lon -0.1260
swift run erdigo-send track-finish --host 127.0.0.1 --port PORT --profile website-demo --id field-walk

03 / A geolocated photo

Replace photo.jpg with a local JPEG or PNG file. Upload a site photograph with its coordinates; the SDK handles chunking. Receiver permissions and size limits still apply.

swift run erdigo-send photo --host 127.0.0.1 --port PORT --profile website-demo --id site-photo --lat 51.5074 --lon -0.1278 --file "photo.jpg" --title "Site visit"
Windows 10+ · .NET 8 SDK or later (targets .NET 8)

1. Clone the repository

git clone https://github.com/Ziorentia/Erdigo-sdk.git
cd Erdigo-sdk/windows

2. Start the mock in terminal A

dotnet run --project src/erdigo-send -- serve --mock

3. Pair from terminal B

Use the same working folder in both terminals. Replace PORT with the port printed by the mock. Enter the pairing code only when prompted; compare the full receiver key with terminal A and type yes only if it matches. Keep terminal A running.

dotnet run --project src/erdigo-send -- pair --host 127.0.0.1 --port PORT --name "My field tool" --kinds pin,note,photo,track --label demo --profile website-demo

4. Send your first pin

dotnet run --project src/erdigo-send -- pin --host 127.0.0.1 --port PORT --profile website-demo --id sensor-1 --lat 51.5074 --lon -0.1278 --title "Greenhouse sensor"

In terminal A, type devices, then items followed by the displayed device ID (for example items 1). You should see the new pin. This confirms the SDK-to-mock path, not a connection to the released app.

Three practical experiments

Run these after pairing above. Use the same platform command prefix, profile and PORT. The coordinates and text are sample data; the scripts do not read a real sensor or GPS.

01 / A sensor location with a field note

Place a greenhouse sensor on the map and add a separate maintenance note. Change the sample coordinates to your site when you connect a supported app.

dotnet run --project src/erdigo-send -- pin --host 127.0.0.1 --port PORT --profile website-demo --id sensor-1 --lat 51.5074 --lon -0.1278 --title "Greenhouse sensor"
dotnet run --project src/erdigo-send -- note --host 127.0.0.1 --port PORT --profile website-demo --id maintenance-1 --lat 51.5074 --lon -0.1278 --text "Check the vent at 15:00."

02 / A short GPS track

Append two sample points to the same track ID, then finish it. A real integration would supply your GPS coordinates and capture times instead.

dotnet run --project src/erdigo-send -- track-add --host 127.0.0.1 --port PORT --profile website-demo --id field-walk --lat 51.5074 --lon -0.1278 --title "Site walk"
dotnet run --project src/erdigo-send -- track-add --host 127.0.0.1 --port PORT --profile website-demo --id field-walk --lat 51.5080 --lon -0.1260
dotnet run --project src/erdigo-send -- track-finish --host 127.0.0.1 --port PORT --profile website-demo --id field-walk

03 / A geolocated photo

Replace photo.jpg with a local JPEG or PNG file. Upload a site photograph with its coordinates; the SDK handles chunking. Receiver permissions and size limits still apply.

dotnet run --project src/erdigo-send -- photo --host 127.0.0.1 --port PORT --profile website-demo --id site-photo --lat 51.5074 --lon -0.1278 --file "photo.jpg" --title "Site visit"

Pair deliberately. Share only what you choose.

Request only the item types you need. The examples request pin, note, photo and track. For a real receiver, the person must approve pairing. Each device can change or delete only its own items. Keep pairing codes and device keys private; never put a pairing code in command arguments. The SDK has not had an independent security audit.

If a connection does not work

Check the receiver is running on the same network and Local Network permission is allowed. noAnswer can mean an unavailable receiver, an expired code or a removed device. notPermitted means the requested item type was not approved. Use a separate profile for each sending program; do not share device keys. Read the platform guide for retry limits and key storage.

Go deeper