Skip to content

Map

The Map plots geocoded addresses and saved locations across your network. Addresses you add to a person are geocoded automatically in the background; this endpoint returns whatever has finished geocoding so far.

GET /api/map/markers

Returns all plottable points for the current user: successfully geocoded addresses and vCard GEO locations, the groups each point’s person belongs to, and counts of addresses still pending or failed geocoding.

Terminal window
curl https://your-instance.example.com/api/map/markers \
-H "Authorization: Bearer ntag_xxx"
{
"markers": [
{
"id": "addr_clxaddr1",
"source": "address",
"personId": "clx1",
"personName": "Ada Lovelace",
"latitude": 51.5074,
"longitude": -0.1278,
"label": "Home",
"city": "London",
"region": null,
"country": "United Kingdom",
"groupIds": ["clxgroup1"]
}
],
"groups": [ { "id": "clxgroup1", "name": "Family" } ],
"pendingCount": 2,
"failedCount": 0,
"geocodingEnabled": true
}

Response fields

FieldDescription
markers[].idaddr_<addressId> for a geocoded street address, or loc_<locationId> for a manually entered GEO location.
markers[].sourceaddress or location.
pendingCountNumber of addresses still waiting to be geocoded.
failedCountNumber of addresses that failed geocoding (invalid or unresolvable).
geocodingEnabledWhether automatic geocoding is enabled instance-wide and for this user. See Settings and Map Geocoding for configuration.

If geocodingEnabled is false, markers will only include manually entered GEO locations, since street addresses are never sent to a geocoding provider.