Places
A place is a name for a spot you return to: home, the office, a cabin, a berth. The record keeps them
in places.json in the record folder, a setting beside the chain like assets.json: a place is never a
line, and renaming one changes no line. What the chain holds is the naming itself, one note/v1 line
per place you name ("named 55.6000,4.4000 as Hytta på banken"), so the record says when you gave it.
{"Home": {"lat": 59.9139, "lon": 10.7522, "radius_m": 120, "kind": "home", "tags": ["family"]}}
kind is home, asset-berth or other; a night is at home when its stay lies in a place of kind
home. radius_m is how far from the centre a point still counts as there (150 m when left out).
Every reader reads the file each time it runs: the Day, day, serve, show days, the trips, the
rollups. A stay inside a named place prints its name; one outside prints its coordinates, 55.6100,4.4000
near Hytta på banken, 1.1 km. Name a place and the next page you open says it.
| Command | What it does |
|---|---|
logbook setup places list |
one line per place |
logbook setup places add NAME --lat --lon [--radius M] [--kind] [--tags] |
add one, by hand; appends nothing |
logbook setup places name LAT,LON NAME |
add one and put the naming in the record |
logbook setup places propose |
your unnamed stays grouped and ranked by hours, with what is near; --write asks for a name for each |
logbook setup places review |
the places you return to, each with the name the record already holds for it, to accept, name or reject (below); --ask-photos asks your photo libraries too (below); logbook serve's Places page asks the same, in a browser |
logbook setup places import-takeout PATH |
Google Maps' saved and starred places as entries, written only with --write |
logbook places … still works for each of these, with one line saying the new name.
Review
You have years of points and a dozen named places, so most of your days print coordinates. review
lets you name the places you return to in one sitting, from what the record already knows about each.
$ logbook setup places review
12 places observed · 0 named · 12 to review, by nights then hours
1 55.6000,4.4000 · 6 visits · 6 nights · 91.5 h · 2026-02-02 – 2026-02-14 → Hytta på banken
google-takeout timeline: "Hytta på banken" (3 visits) · google-takeout timeline: "Home" (3 visits, type) · immich: "Nordsjøen" (1 photo, city)
2 55.6000,4.4180 · 3 visits · 3 nights · 48.0 h · 2026-02-04 – 2026-02-13 → Verkstedet
google-takeout timeline: "Verkstedet" (2 visits)
3 55.6000,4.4360 · 2 visits · 2 nights · 30.5 h · 2026-02-07 – 2026-02-12 → ____
no source names it
…
nothing written: `setup places review --accept N[,N]`, `--name N "…"`, or `--reject N[,N]`
(A synthetic record at sea; nobody lives at those coordinates.)
The evidence is folded: a reverse geocoder names every house number a track passes, so the addresses
one source wrote along one street are one line (dawarich: "Plattformveien" (38 addresses, 217
stays)), three lines are shown, and … and N more counts the rest. --verbose prints every name on
its own, as before.
Observed places
An observed place is a cluster of your stays: the same spot within 75 m (--radius M to
change it). Your stays are taken from the longest down; each joins the nearest cluster whose first,
longest stay lies within the radius, or starts a cluster of its own. Each observed place has its
visits (the stays), its nights (the nights whose overnight stay, as the Day picks it, was there), its
first and last visit, its total hours, its centre (the stays' centres weighted by hours), and the names
the record holds for the spot. The queue ranks them by nights, then hours: where you sleep comes
first.
The observed places are derived, never stored in the record: the place rows of a table in the index
(observed_entities in index.sqlite, in your cache directory, read through its view observed_places,
the table it replaces, for one release; RFC 0037), built from the lines and kept until the record, places.json,
assets.json or policy/stays.json changes, then built again. Building it reads your track from the
index alone, as propose does, and opens only the lines that can carry a name: the Timeline visits,
the photos, the calendar entries, and the first and last point of each stay.
Where the names come from
Only from lines already in the record. Each name is shown under the source that said it, with how often:
| Source | What names a spot | Weight a line |
|---|---|---|
| Google Timeline | a place visit of the archive's Semantic Location History names the place and its address (placeVisit.location.name, else address), by its coordinates |
3 |
any Timeline visit whose type is home or work (TYPE_HOME, INFERRED_WORK, Home) says Home or Work |
1 | |
| Calendar | the location of a timed entry held during one of the cluster's stays (overlapping it for half its length or more), its first line as you typed it; not an online meeting (a link, Zoom, Teams, Meet, Webex, Skype, FaceTime), not one whose own coordinates are more than 1 km away, not an all-day entry, not a cancelled one | 3 |
| Photos | the place the photo's library named: Photos' area name or address (extra.place, written by apple-photos), by the photo's coordinates or, without them, its time |
2 |
Immich's city (exifInfo.city, written by immich as extra.place.city) |
1 | |
| Dawarich | the place Dawarich's own reverse geocoder wrote on the first and last point of a stay (name, else street and number), once per stay |
2 |
A name with coordinates names the observed place nearest them within 150 m, one you were at that hour
first. The proposal's name is the one with the most weight; a name already in places.json, or one you
rejected for that spot, is passed over for the next. Where no source names a spot, the proposal is a
blank (____) for you to fill.
The phones' own Timeline exports (Android's Timeline.json, the iPhone's location-history.json)
carry Google's place id and a type for each visit, never a name: they give Home and Work at most.
The names are in the Semantic Location History of a Takeout archive downloaded before Google moved
Timeline onto the phone (the export steps).
A location shared in iMessage or WhatsApp would name a spot too, but neither adapter keeps a shared
location's coordinates yet, so none is read.
Nothing is looked up
No coordinate leaves your machine, and no geocoder is ever asked — not an online one, not an offline
one. review reads the record and writes places.json; it opens no connection, and the tests hold it
to that with the network guard on. A spot has a name here only when a source already wrote one into a
line: Google's when you exported your Timeline, your calendar's when you typed it, your photo library's
when it named the picture on your phone or your Immich server, Dawarich's when your own server
geocoded the point. Everything else is a blank, and the name is yours to give. The one exception is
yours to make, each time you want it: --ask-photos asks your own Immich server about your own photos,
by asset id (Ask the photos).
Ask the photos
A record that has synced a photo library for years holds hundreds of thousands of photo lines, and
most carry no place name: they were imported before the Immich and Photos adapters kept the place their
library named, and the record never rewrites a line, so syncing again adds nothing to them. Your
libraries still know where each photo was taken. --ask-photos asks them about the photos already in
the record, and offers what they say as evidence like any other source.
Your photos' asset ids go to your own Immich server, and nothing else leaves your machine: no coordinate, no name, no photo, and never a geocoder. Immich answers with the city it named on your server when the photo was uploaded; Photos is read from the library on this machine.
$ logbook setup places review --ask-photos
asking the photos about 7 places: up to 50 photos at each from each library, the nearest its centre first
immich: 13 photos; sending 13 asset ids to immich.example.org, nothing else, at most 10 a second (about 2 s)
photos: 4 photos; reading their places from the library at ~/Pictures/Photos Library.photoslibrary/database/Photos.sqlite, on this machine
immich: 12 named a place, 1 not on the server
photos: 3 named a place, 1 not in the library
12 places observed · 0 named · 12 to review, by nights then hours
…
3 55.6000,4.4360 · 2 visits · 2 nights · 30.5 h · 2026-02-07 – 2026-02-12 → Havbyen
immich ×12: Havbyen
…
7 55.6100,4.4360 · 4 visits · 0 nights · 12.0 h · 2026-02-03 – 2026-02-12 → Plattformen
photos ×3: Plattformen
8 55.6100,4.4540 · 5 visits · 0 nights · 10.0 h · 2026-02-04 – 2026-02-13 → ____
no source names it
…
(The same synthetic record at sea; the server and every name are invented.)
- Which places. The blanks among the proposals shown — after
--nearand--top— or the ones you--acceptor--reject.--allasks about the proposals that already have a name too. The queue and its numbers are the same with the flag and without it. - Which photos. Your
immichandapple-photosphoto lines that have coordinates and no place name of their own, at the observed place nearest them within 150 m. Of each place, the 50 photos nearest its centre from each library (--limit Nto ask about more or fewer). - Immich is asked through the same client
sync immichuses: yourLOGBOOK_IMMICH_URL, your key (theasset.readpermission it already has), oneGET /api/assets/{id}per photo, one at a time and at most 10 a second. Its answer is the city, state and country your server named. - Photos is the library a Mac keeps at
~/Pictures/Photos Library.photoslibrary, or the one--photos-library PATHnames, read only: the address and the area names Photos gave each picture. - The cost first. Before anything is sent, one line per library says how many photos it will be
asked about, how many the cache answers, and where the rest go. The lines go to stderr, so
--jsonstays one object; with--jsonthe object also carriesasked_photos, the same counts. - The cache. Every answer — a place, no place, a photo the library no longer has — is kept in
state/places-photos.jsonbeside the record, by asset id, for 30 days. A second review within them asks nothing again; after them, it asks again. Deleting the file only means the next review asks. - When a library cannot answer. An Immich without its two variables, a library that is not there,
and a source you disabled in
policy/import.jsonare said and passed over. A server that fails is said once, with how many photos were not asked, and the review goes on with the other sources; a failure is never cached, so the next review asks again.
What a photo's library says weighs as a photo line's place does: Photos' area name or address 2 a photo,
a city (all Immich gives) 1. With --all, a dozen photos' city can outweigh a few Timeline visits'
name; the evidence line shows both, and the choice is yours.
Nothing is written: the photo names are evidence, and accepting one is --accept as before. Give
--ask-photos with it, so the review sees the name it proposed (the cache answers, so nothing is asked
twice):
logbook setup places review --ask-photos --accept 3 # Havbyen, from the photos, into places.json
logbook setup places review --ask-photos --reject 7 # never propose Plattformen for that spot again
Your say
Nothing is accepted on its own.
logbook setup places review --accept 1,2 # the names proposed, as they are
logbook setup places review --name 3 "Base" # your own name for proposal 3
logbook setup places review --reject 4 # never propose that name for that spot again
logbook setup places review --near Home --top 10 # the ten first within 5 km of Home (or of lat,lon)
logbook setup places review --json # the queue, with the evidence and its line ids
- Accept writes the place into
places.json: the observed place's centre, a fitted radius (below), kindother— change it with an editor orsetup places addif it is a home or a berth — and puts the naming in the record assetup places namedoes, onenote/v1line. - Name is accept with your own words.
- Reject puts the pair — the spot and the name proposed, or the blank — in the record as one
entity-review/v1line of type place (RFC 0037; the profiles): itsrefthe spot's centre, itslabelthe name, its evidence the stays' lines, its tier the highest of theirs and never under 2. That name is not proposed for that spot again; reject a blank and the spot stays out of the queue until a source names it; retract the line and the pair returns. The Places page oflogbook serverejects through the same code.state/places-review.jsonis a cache of those lines, rebuilt from them when the record has moved, never the truth: delete it and nothing you see changes. - Migrate (
--migrate-rejects): until 0.7 a reject was kept instate/places-review.jsononly, never as a line, and a backup left it out. Those pairs still count;--migrate-rejectswrites each of them once as anentity-review/v1line, at the moment you said it, and says how many on stderr; a second run writes nothing. Until you run it,reviewsays how many are not lines yet.
The numbers are the queue's as review prints it, also with --near and --top; every number in one
command is checked before anything is written, and after a write the queue is numbered again. On a
terminal, review asks for each proposal shown: y accepts the name, n rejects it, anything else is
the name to give it, Enter skips, q stops. Each answer is written at once. logbook review place is
this sitting under the name every kind shares (review); the two print the same, byte for
byte.
In the browser
logbook serve's Places page (serve) asks the same questions
without a terminal: the queue in this order, twenty a page, each cluster with a dot on a plain canvas,
its facts, its evidence folded, a field prefilled with the proposal, and Name, Skip and Not a place
(Enter, Space and n). Name and Not a place go through the same accept and reject as --name,
--accept and --reject, so what lands in places.json, the record and state/places-review.json is
what the CLI writes. The form is answered from this machine only. A Day's stay printed as coordinates
links to its cluster there.
The fitted radius
The radius an accepted place gets is the distance from its centre within which 95% of its hours were
spent, plus 75 m for the scatter of one stay's own fixes, rounded up to 5 m, between 75 and 300 m. When
that circle would reach into a place you have named already, it is drawn back to that place's edge,
never below 50 m; a spot whose centre lies inside a named place is that place already, and is not
proposed. --json shows the radius each proposal would get.