Get the map location of every server
Returns the location recorded for each server, and this instance's own location in default. The map puts a server without a recorded location at default.
session<token>Session cookie authentication.
Request fulfilled, document follows
application/json- response
Every server's map location, plus this instance's own location as the default.
default*|This instance's own location, found at startup or set with MAP_SERVER_LATITUDE and MAP_SERVER_LONGITUDE. Null when it has neither.
locations*array<>Sorted by server name.
curl -X GET 'https://geometrikks.example.com/api/v1/geo-locations/server-locations'{ "default": { "latitude": 0, "longitude": 0 }, "locations": [ { "detectedAt": "string", "lastEventDay": "string", "latitude": 0, "longitude": 0, "server": "string", "source": "auto" } ]}Get the locations with events as GeoJSON GET
Returns a GeoJSON FeatureCollection with one point per location that had events in the range, busiest first, and totals in `stats`. Ranges over 24 hours read the location aggregates, which count whole hours or UTC days, from the one that holds `fromTimestamp` through the last one that starts before `toTimestamp`. An IP or ASN filter reads the raw rows instead, which go back only ANALYTICS_RAW_RETENTION_DAYS days, 180 by default. A server filter does the same on a database whose location aggregates predate server tracking.
Remove a retired server's location DELETE
Deletes the auto-detected location of a server you no longer run and answers 204. If the server's instance still runs, it records the location again at its next location refresh. A location that MAP_SERVER_LOCATIONS pins gets a 409. Needs a Read/write API key or a browser session.