Send your position to your own server
Besides Cartograph Live, Cartograph Maps can send your position to a server you run or use yourself. It is sent while you share, exactly like Cartograph Live: while you record with Share my location on, or with Share without recording. Live tracking needs Cartograph Pro.
To see positions from your server on your map (other people, other devices), add a source instead: see Show people from your own server.
Add a destination
- Open the Live tracking page, tab Sharing.
- Under Destinations, press + and choose the kind of server:
- Traccar / OsmAnd protocol
- OwnTracks / Home Assistant
- Dawarich / Overland
- Custom URL
- Fill in the dialog (see below). The Name is how the destination appears in the list.
- Press Send a test position in the Status card. The app sends your current position (or the map centre) once and shows the answer, for example “OK: the server accepted the position (HTTP 200). Check that it shows up there.”
- Check on your server that the position arrived, then close the dialog.
A new destination is ticked, so it gets your position as soon as you share. Untick it to pause it.
To change a destination later, press ⋮ next to it and choose Properties. Delete removes it.
Traccar
Choose Traccar / OsmAnd protocol. It also works with other servers that accept the OsmAnd protocol.
- Server url: the server’s OsmAnd port, for example
http://traccar.example.com:5055. This is not the address of Traccar’s web page. - Device ID: any identifier. In Traccar, add a device whose identifier is this device ID; positions for an unknown device are refused.
OwnTracks and Home Assistant
Choose OwnTracks / Home Assistant.
- Server url: the OwnTracks HTTP URL, for example
https://recorder.example.com/pubfor the OwnTracks Recorder, or the webhook URL of Home Assistant’s OwnTracks integration. - Device ID and User: the device and user name your server expects.
- Tracker ID (2 letters): the short name OwnTracks shows on the map.
- Password: if your server needs one.
Only OwnTracks’ HTTP mode is supported, without payload encryption.
Dawarich and other Overland servers
Choose Dawarich / Overland. Positions are sent in batches (up to 100 at a time).
- Server url: for Dawarich,
https://dawarich.example.com/api/v1/overland/batches?api_key=YOUR_KEY. The key is in your Dawarich account settings. Any server that accepts the Overland format works too. - Device ID: shown on the server as the device.
- Access token (optional): for servers that want a bearer token instead of a key in the URL.
Dawarich expects its API key in the URL, so it shows up in that server’s access logs. That is how Dawarich works; use an access token where your server supports one.
Any other server: Custom URL
Choose Custom URL for a server that none of the above fits. You write the request yourself, with placeholders that the app fills in for every position:
- Server url: the address, with placeholders, for example
https://www.example.com/track?lat={lat}&lon={lon}&time={pt}. - Send as POST with a body: off, the app calls the URL (GET). On, it sends a POST request with the Body below.
- Body: the request body, also with placeholders, for example
{"lat":{lat},"lon":{lon},"time":"{ts_iso}"}. - Content type: the body’s type, for example
application/json. - HTTP Headers: extra headers, one per line as
Name: value(for example anAuthorizationheader).
Values are escaped to fit where they are: URL-encoded in the URL, JSON-escaped in a JSON body. A custom URL sends one position per request.
Placeholders
| Placeholder | Value |
|---|---|
{lat}, {lon} | Latitude and longitude in degrees |
{alt} | Altitude in metres |
{acc} | Horizontal accuracy in metres |
{speed} | Speed in metres per second |
{speed_kmh}, {speed_kn} | Speed in km/h, in knots |
{course} | Course in degrees |
{batt} | Battery level in percent |
{pt} | Time of the position (Unix time, seconds) |
{ts_iso} | Time of the position (ISO 8601, UTC) |
{st} | Time the request was made (Unix time, seconds) |
{hf} | Heart rate in beats per minute (from a sensor) |
{cad} | Cadence in revolutions per minute (from a sensor) |
{power} | Power in watts (from a sensor) |
A placeholder without a value (no sensor, no altitude yet) is left empty. These placeholders are accepted but currently always empty: {dst} (distance), {cal} (calories), {temp} (temperature), {lightint} (light intensity), {hum} (humidity), {ap} (air pressure), {steps} (steps).
Passwords and keys stay on the device
Destinations are synced to your other devices, but their passwords, keys and tokens are not (“Stored on this device only; it isn’t synced.”). On another device the destination shows “Needs the password / key on this device” and doesn’t send until you enter it there too.
Privacy zones
Your privacy zones apply to your own servers only if you tick Respect privacy zones in the destination’s dialog.
Set up from a link or a file
A server admin can hand out a setup link, or you can import an OwnTracks configuration file. In both cases the app asks first, naming the server your position would go to: “Add a destination that sends your position to …? It’s added unticked: nothing is sent until you tick it and share.” It never changes an existing destination, and a link never contains a password.
Setup link:
cartograph-cmd://live/add?preset=traccar&url=http://traccar.example.com:5055&id=my-phone&name=Home%20Traccar
| Parameter | Meaning |
|---|---|
preset | traccar, owntracks, overland (or dawarich) or custom |
url | The server address (http or https); required |
id | The device ID; required for traccar |
user | The user name (OwnTracks) |
tid | The tracker ID, 2 letters (OwnTracks) |
name | The name of the destination |
OwnTracks configuration file (.otrc): open the file with Cartograph Maps. It takes the server address, device ID, tracker ID, user and password from it. Files for MQTT mode and files with an encryption key are refused.
Old custom live tracking services
Custom live tracking services you set up in earlier versions keep working unchanged: the app still calls their URL with the same placeholders, also in the background. You can edit them with ⋮ → Properties. New ones are made with Custom URL, which can do the same and more (POST, a body, more placeholders).