← All repositories

reportage

A life-logging app for iPhone

git clone https://code.inqk.net/reportage.git


commit e1aef93a912f6a841ae9c8cda1a97337a6540531
parent 820b3a8769490d9a70f999c865cd83a41da66316
Author: Michael Camilleri <[email protected]>
Date:   Fri, 16 Oct 2026 21:58:54 +0900

Suggest places nearby and from Apple Maps in the survey

This commit ranks the user's own places by distance from the report's
location. Distances fall into bands, and places rank by band and then
by use and recency, so that of two places within the fix's error the
one used more comes first. Without a search, only places within 500
metres are listed, followed by nearby places from Apple Maps; anywhere
further away is found by searching, which looks through the user's
places and Apple Maps together. Without a location, every place is
listed by use, as before. Typing a new name adds a place at the
report's location.

A map above the list shows where the reporter is located. Choosing a
candidate pins it, centred and zoomed out far enough to keep the
reporter's location in view, and the map makes way for the keyboard
while searching.

An Apple Maps place that is already one of the user's places is shown
as theirs: the same MapKit ID, or a Foursquare-era place with the same
name within 200 metres. Choosing one that is new makes a token holding
its name in the app's language, its coordinate and its MapKit ID, saved
only if it is still the answer when the survey closes. Places without a
coordinate of their own sit at the centre of where their answers were
given.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

Diffstat

MNotes/Design.md | 27+++++++++++++++++++++++++++
MReportage.xcodeproj/project.pbxproj | 28++++++++++++++++++++++++++++
AReportage/Services/Places/PlaceDirectory.swift | 94+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
AReportage/Services/Places/PlaceRanking.swift | 62++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
AReportage/Views/Survey/PlaceAnswerView.swift | 237+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
AReportage/Views/Survey/PlacePicker.swift | 341+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
MReportage/Views/Survey/QuestionPage.swift | 6+++++-
MReportage/Views/Survey/SurveyModel.swift | 63+++++++++++++++++++++++++++++++++++++++++----------------------
MReportage/Views/Survey/TokenAnswer.swift | 24+++++++++++++++++++-----
MShared/Capture/ContextCapture.swift | 14+++++++++++---
MShared/Persistence/Vocabulary.swift | 28++++++++++++++++++++++++++--
MTests/Unit/ContextCaptureTests.swift | 5+++--
ATests/Unit/PlacePickerTests.swift | 237+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
MTests/Unit/ReportStoreTests.swift | 32++++++++++++++++++++++++++++++++
MTests/Unit/SurveyModelTests.swift | 12+++++++-----

15 files changed, 1170 insertions(+), 40 deletions(-)

diff --git a/Notes/Design.md b/Notes/Design.md

@@ -260,6 +260,33 @@ Candidates, in order:
 Candidates are merged by external ID, and Foursquare-era places (which have no
 MapKit ID) by name and distance.
 
+In the survey (`PlacePicker`):
+
+- **Ranking.** Distances fall into bands (150 m, 400 m, 1 km, 5 km, 25 km,
+  beyond, unknown), and places rank by band, then by use and recency. Two
+  places a few hundred metres apart are both within the fix's error and the
+  spread of past answers, so the one used more is the better guess. A place's
+  coordinate is the token's own, or else the centre of where its answers were
+  given.
+- **Sections.** With a location: the user's places within 500 m, then nearby
+  MapKit places (within 250 m, closest first). Places further away are found
+  by searching. Without a location: all the user's places by use. A search
+  lists the user's matching places at any distance, then MapKit's results in
+  MapKit's order, biased to a 20 km region around the location.
+- **Merging.** A MapKit place that's one of the user's places is shown as
+  theirs, at MapKit's coordinate: the same MapKit ID, or a place without one
+  with the same name within 200 m.
+- **Timing.** Capture reports the fix as soon as it has one, before the
+  address lookup, and the nearby search starts then. The list is ranked once,
+  for that fix, so it doesn't reshuffle while the user is choosing.
+- **New tokens.** Choosing a MapKit place makes a token holding its name (with
+  the app's language), coordinate and MapKit ID. Adding a typed name makes one
+  at the report's location. Either is saved only if it's still the answer when
+  the survey closes.
+- **The map** shows the report's location, and pins the chosen place, centred
+  on it and zoomed out far enough to keep the location in view. It makes way
+  for the keyboard while searching.
+
 ### Context
 
 `Context` is a `Codable` struct stored on the report rather than separate

diff --git a/Reportage.xcodeproj/project.pbxproj b/Reportage.xcodeproj/project.pbxproj

@@ -11,8 +11,10 @@
 		047D3797389624E8B4AF44B4 /* ReportageExporter.swift in Sources */ = {isa = PBXBuildFile; fileRef = CD433A98973E8B13E42230A1 /* ReportageExporter.swift */; };
 		06415D2A2EDA6E92ECAC96FA /* Report.swift in Sources */ = {isa = PBXBuildFile; fileRef = B03734F91822E7F161432075 /* Report.swift */; };
 		0F052B8A2C73437F57E927E7 /* ReportStoreTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84E55C093BA98D8700F406AE /* ReportStoreTests.swift */; };
+		22EA393B887791E20B6FE625 /* PlacePickerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1B6C4141A26EED99B1F03FBE /* PlacePickerTests.swift */; };
 		25BC9F95DC40E31B1E4C6FBA /* Token.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3BE62142CCC4A791F05163A /* Token.swift */; };
 		28D2CDAAB0777233D4465A83 /* ReporterArchiveTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 487F88C880B5DE69964C6A37 /* ReporterArchiveTests.swift */; };
+		2EE68329C383FA1C5295ACA9 /* PlaceAnswerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9856D1F8123B9CAD7D39071D /* PlaceAnswerView.swift */; };
 		3175E324135E1CF5A73683D1 /* ReporterTimeZones.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7196D553D769071DB876B606 /* ReporterTimeZones.swift */; };
 		3244B8439B5E4F79FF84C156 /* JSONSlicer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 643C730A99F0B7BA8C1F8A8E /* JSONSlicer.swift */; };
 		36A35625365E87B39CB88194 /* ReporterImporter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 48D44876FDE4293FA0460595 /* ReporterImporter.swift */; };
@@ -20,6 +22,7 @@
 		406D536D7764B3FEB140CAA0 /* EntityMapping.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5BE7248E73E2859EFF232170 /* EntityMapping.swift */; };
 		4A0DEFB7E69A9FC5EAAD99D4 /* RealExportVerificationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3DF3B490F336FCE1E1E3DDBA /* RealExportVerificationTests.swift */; };
 		540CA20A213B0446B6F71885 /* Vocabulary.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74FF461F6E8A0241C18357B2 /* Vocabulary.swift */; };
+		633A94E029055EA5D50D00AC /* PlaceRanking.swift in Sources */ = {isa = PBXBuildFile; fileRef = 76FFC5FE874467974DD6BFA0 /* PlaceRanking.swift */; };
 		68DDAB8BB2E679EB7EC1E9C1 /* ReporterImportPlan.swift in Sources */ = {isa = PBXBuildFile; fileRef = 798E1DE82BD53EC5BEBA76B7 /* ReporterImportPlan.swift */; };
 		6E21E729F89178EBD019980E /* InlineCasing.swift in Sources */ = {isa = PBXBuildFile; fileRef = A00E589A8387E7A1E348503C /* InlineCasing.swift */; };
 		6F06CC539C4D17B343A9321C /* LegacyBlob.swift in Sources */ = {isa = PBXBuildFile; fileRef = 30FFB17809ADA84F1036E2A7 /* LegacyBlob.swift */; };
@@ -43,8 +46,10 @@
 		C8E02DEA2119E61D31667FFE /* ReporterImportPlanTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7FD562C0C92C1D59881C771E /* ReporterImportPlanTests.swift */; };
 		CFB0A1F9494F1D8919F48CC5 /* ContextCaptureTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3157F7D5E4289B349E92402 /* ContextCaptureTests.swift */; };
 		D0497C9835A2502936591DC1 /* DisplayRule.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8E609FFCB918B4EF9BFCC018 /* DisplayRule.swift */; };
+		D3C3046B927DB98443E005C8 /* PlaceDirectory.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBBE80E95676BAEB53CE80E0 /* PlaceDirectory.swift */; };
 		D3FF67FB406DCCB78DF9D61A /* ReportSummaryTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0734316A58943D5F2E26F718 /* ReportSummaryTests.swift */; };
 		D487802C53EA0E96698BE151 /* ContextCapture.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9F3237323A968FA629020DA9 /* ContextCapture.swift */; };
+		D74CE3807E9593D470DADAA8 /* PlacePicker.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C40E7F6C3A90E317C8CB5B1 /* PlacePicker.swift */; };
 		D7F95FB1236974113EBE93FA /* ReportKind+Title.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5591E042089D038B59B26E9F /* ReportKind+Title.swift */; };
 		D9A8839569734F5CEAC43A44 /* TokenAnswer.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF998798373C9CCAD65999B3 /* TokenAnswer.swift */; };
 		DF632654B427EE32C44C6F78 /* Context.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1F200EBD30BC12D2313E6C6F /* Context.swift */; };
@@ -71,6 +76,7 @@
 		0734316A58943D5F2E26F718 /* ReportSummaryTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReportSummaryTests.swift; sourceTree = "<group>"; };
 		0B35602A218BE4EE399835FD /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
 		14AD1548EA722CF1E19BCE42 /* EntryDraft.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EntryDraft.swift; sourceTree = "<group>"; };
+		1B6C4141A26EED99B1F03FBE /* PlacePickerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlacePickerTests.swift; sourceTree = "<group>"; };
 		1BBAB5AD6266B8F6E3507AE3 /* ReportSummary.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReportSummary.swift; sourceTree = "<group>"; };
 		1F200EBD30BC12D2313E6C6F /* Context.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Context.swift; sourceTree = "<group>"; };
 		24A77AE6DE479403D1D4C9CF /* QuestionPage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QuestionPage.swift; sourceTree = "<group>"; };
@@ -82,6 +88,7 @@
 		3ED0CAE575381DCB86FB8EE9 /* ReporterImportVerifier.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReporterImportVerifier.swift; sourceTree = "<group>"; };
 		487F88C880B5DE69964C6A37 /* ReporterArchiveTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReporterArchiveTests.swift; sourceTree = "<group>"; };
 		48D44876FDE4293FA0460595 /* ReporterImporter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReporterImporter.swift; sourceTree = "<group>"; };
+		4C40E7F6C3A90E317C8CB5B1 /* PlacePicker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlacePicker.swift; sourceTree = "<group>"; };
 		5591E042089D038B59B26E9F /* ReportKind+Title.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "ReportKind+Title.swift"; sourceTree = "<group>"; };
 		5BE7248E73E2859EFF232170 /* EntityMapping.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EntityMapping.swift; sourceTree = "<group>"; };
 		5C2AB8F226532A0889E2BCAD /* Reportage.app */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = wrapper.application; path = Reportage.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -93,6 +100,7 @@
 		6E382405EE9DBEC8EE616C1D /* SurveyModelTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SurveyModelTests.swift; sourceTree = "<group>"; };
 		7196D553D769071DB876B606 /* ReporterTimeZones.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReporterTimeZones.swift; sourceTree = "<group>"; };
 		74FF461F6E8A0241C18357B2 /* Vocabulary.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Vocabulary.swift; sourceTree = "<group>"; };
+		76FFC5FE874467974DD6BFA0 /* PlaceRanking.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlaceRanking.swift; sourceTree = "<group>"; };
 		798E1DE82BD53EC5BEBA76B7 /* ReporterImportPlan.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReporterImportPlan.swift; sourceTree = "<group>"; };
 		7ABE75DB46245AFDE8A44A48 /* Config.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Config.xcconfig; sourceTree = "<group>"; };
 		7DB6FF151DCEBC3913131834 /* ReportageExportTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReportageExportTests.swift; sourceTree = "<group>"; };
@@ -103,6 +111,7 @@
 		8E609FFCB918B4EF9BFCC018 /* DisplayRule.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DisplayRule.swift; sourceTree = "<group>"; };
 		917C4579342FAC42F6C616FC /* ReporterImporterTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReporterImporterTests.swift; sourceTree = "<group>"; };
 		94DB0CA378AEF82B3CB27B67 /* DefaultQuestions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DefaultQuestions.swift; sourceTree = "<group>"; };
+		9856D1F8123B9CAD7D39071D /* PlaceAnswerView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlaceAnswerView.swift; sourceTree = "<group>"; };
 		9F3237323A968FA629020DA9 /* ContextCapture.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContextCapture.swift; sourceTree = "<group>"; };
 		A00E589A8387E7A1E348503C /* InlineCasing.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InlineCasing.swift; sourceTree = "<group>"; };
 		A20C574BC234EDBD4056E2B7 /* TestHelpers.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestHelpers.swift; sourceTree = "<group>"; };
@@ -112,6 +121,7 @@
 		B007E6BACAA214C7332EF77C /* Question.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Question.swift; sourceTree = "<group>"; };
 		B03734F91822E7F161432075 /* Report.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Report.swift; sourceTree = "<group>"; };
 		B7998F9826B899741323C0C7 /* SurveyView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SurveyView.swift; sourceTree = "<group>"; };
+		BBBE80E95676BAEB53CE80E0 /* PlaceDirectory.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlaceDirectory.swift; sourceTree = "<group>"; };
 		BF998798373C9CCAD65999B3 /* TokenAnswer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TokenAnswer.swift; sourceTree = "<group>"; };
 		C3C7B68925A281EF806BB9B8 /* Theme.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Theme.swift; sourceTree = "<group>"; };
 		CC1C5F0F722477CDA949F018 /* ReporterArchive.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReporterArchive.swift; sourceTree = "<group>"; };
@@ -135,6 +145,8 @@
 		23711442404F0476532D0FC2 /* Survey */ = {
 			isa = PBXGroup;
 			children = (
+				9856D1F8123B9CAD7D39071D /* PlaceAnswerView.swift */,
+				4C40E7F6C3A90E317C8CB5B1 /* PlacePicker.swift */,
 				24A77AE6DE479403D1D4C9CF /* QuestionPage.swift */,
 				844ABAD88442C143BA239374 /* SurveyModel.swift */,
 				B7998F9826B899741323C0C7 /* SurveyView.swift */,
@@ -193,11 +205,21 @@
 			path = Tests/Support;
 			sourceTree = "<group>";
 		};
+		580063E6A7AE05D5C6C16830 /* Places */ = {
+			isa = PBXGroup;
+			children = (
+				BBBE80E95676BAEB53CE80E0 /* PlaceDirectory.swift */,
+				76FFC5FE874467974DD6BFA0 /* PlaceRanking.swift */,
+			);
+			path = Places;
+			sourceTree = "<group>";
+		};
 		60B58F5030E4A690025C51F5 /* Services */ = {
 			isa = PBXGroup;
 			children = (
 				AD85758A0521ED681067B90F /* Export */,
 				96D6D46E008E39350B203328 /* Narrative */,
+				580063E6A7AE05D5C6C16830 /* Places */,
 				F7B8E02FFC282DCD163E25FE /* ReporterImport */,
 			);
 			path = Services;
@@ -219,6 +241,7 @@
 				A3157F7D5E4289B349E92402 /* ContextCaptureTests.swift */,
 				D4AFF3D49ED9E8AC69390925 /* JSONSlicerTests.swift */,
 				5C606A9B0EF8D84950B9681B /* ModelCodingTests.swift */,
+				1B6C4141A26EED99B1F03FBE /* PlacePickerTests.swift */,
 				3DF3B490F336FCE1E1E3DDBA /* RealExportVerificationTests.swift */,
 				7DB6FF151DCEBC3913131834 /* ReportageExportTests.swift */,
 				487F88C880B5DE69964C6A37 /* ReporterArchiveTests.swift */,
@@ -416,6 +439,7 @@
 				CFB0A1F9494F1D8919F48CC5 /* ContextCaptureTests.swift in Sources */,
 				8ADBA81D5D9ECCDCD5BDA742 /* JSONSlicerTests.swift in Sources */,
 				964408E4D25713F627048C77 /* ModelCodingTests.swift in Sources */,
+				22EA393B887791E20B6FE625 /* PlacePickerTests.swift in Sources */,
 				4A0DEFB7E69A9FC5EAAD99D4 /* RealExportVerificationTests.swift in Sources */,
 				0F052B8A2C73437F57E927E7 /* ReportStoreTests.swift in Sources */,
 				D3FF67FB406DCCB78DF9D61A /* ReportSummaryTests.swift in Sources */,
@@ -445,6 +469,10 @@
 				6F06CC539C4D17B343A9321C /* LegacyBlob.swift in Sources */,
 				F6F2DD23C77A981D76BE0480 /* NarrativePolisher.swift in Sources */,
 				C5D94FEC4507054E6497E85B /* PersistenceController.swift in Sources */,
+				2EE68329C383FA1C5295ACA9 /* PlaceAnswerView.swift in Sources */,
+				D3C3046B927DB98443E005C8 /* PlaceDirectory.swift in Sources */,
+				D74CE3807E9593D470DADAA8 /* PlacePicker.swift in Sources */,
+				633A94E029055EA5D50D00AC /* PlaceRanking.swift in Sources */,
 				F38A1CCFAF016AB982EAB791 /* Question.swift in Sources */,
 				85A36A88AB170F0EAC0DAC03 /* QuestionPage.swift in Sources */,
 				06415D2A2EDA6E92ECAC96FA /* Report.swift in Sources */,

diff --git a/Reportage/Services/Places/PlaceDirectory.swift b/Reportage/Services/Places/PlaceDirectory.swift

@@ -0,0 +1,94 @@
+import CoreLocation
+import Foundation
+import MapKit
+
+/// A place from the directory, offered as a candidate when answering a
+/// `location` question.
+struct DirectoryPlace: Hashable, Sendable {
+    /// `MKMapItem.Identifier` raw value.
+    var id: String
+    var name: String
+    var coordinate: Coordinate
+    /// A short address, shown beneath the name.
+    var detail: String?
+    /// The language `name` is in: on-device MapKit names places in the app's
+    /// language.
+    var language: String?
+}
+
+/// Where nearby places and search results come from. MapKit in the app; a
+/// fake in tests.
+protocol PlaceDirectory: Sendable {
+    func places(near coordinate: Coordinate) async throws -> [DirectoryPlace]
+    func search(_ query: String, near coordinate: Coordinate?) async throws -> [DirectoryPlace]
+}
+
+struct MapKitPlaceDirectory: PlaceDirectory {
+    /// How far around the location nearby places are looked for, in metres.
+    var nearbyRadius: CLLocationDistance = 250
+    /// The size of the region search results are biased towards, in metres.
+    var searchSpan: CLLocationDistance = 20_000
+
+    func places(near coordinate: Coordinate) async throws -> [DirectoryPlace] {
+        let request = MKLocalPointsOfInterestRequest(
+            center: CLLocationCoordinate2D(coordinate), radius: nearbyRadius)
+        return try await Self.places(for: MKLocalSearch(request: request))
+    }
+
+    func search(_ query: String, near coordinate: Coordinate?) async throws -> [DirectoryPlace] {
+        let request = MKLocalSearch.Request()
+        request.naturalLanguageQuery = query
+        request.resultTypes = .pointOfInterest
+        if let coordinate {
+            request.region = MKCoordinateRegion(
+                center: CLLocationCoordinate2D(coordinate),
+                latitudinalMeters: searchSpan,
+                longitudinalMeters: searchSpan)
+        }
+        return try await Self.places(for: MKLocalSearch(request: request))
+    }
+
+    private static func places(for search: MKLocalSearch) async throws -> [DirectoryPlace] {
+        let language = appLanguage
+        return try await search.start().mapItems.compactMap { item in
+            DirectoryPlace(item, language: language)
+        }
+    }
+
+    /// The language the app runs in, which MapKit names places in.
+    private static var appLanguage: String? {
+        Bundle.main.preferredLocalizations.first.flatMap {
+            Locale(identifier: $0).language.languageCode?.identifier
+        }
+    }
+}
+
+extension DirectoryPlace {
+    /// Map items without an identifier are left out: candidates are merged
+    /// by it, and it's what lets the place gain names in other languages.
+    init?(_ item: MKMapItem, language: String?) {
+        guard let id = item.identifier?.rawValue, let name = item.name else { return nil }
+        let coordinate = item.location.coordinate
+        self.init(
+            id: id,
+            name: name,
+            coordinate: Coordinate(latitude: coordinate.latitude, longitude: coordinate.longitude),
+            detail: item.address?.shortAddress ?? item.addressRepresentations?.cityName,
+            language: language
+        )
+    }
+}
+
+extension CLLocationCoordinate2D {
+    init(_ coordinate: Coordinate) {
+        self.init(latitude: coordinate.latitude, longitude: coordinate.longitude)
+    }
+}
+
+extension Coordinate {
+    /// The distance to `other` along the Earth's surface, in metres.
+    func distance(to other: Coordinate) -> Double {
+        CLLocation(latitude: latitude, longitude: longitude)
+            .distance(from: CLLocation(latitude: other.latitude, longitude: other.longitude))
+    }
+}

diff --git a/Reportage/Services/Places/PlaceRanking.swift b/Reportage/Services/Places/PlaceRanking.swift

@@ -0,0 +1,62 @@
+import Foundation
+
+/// How the user's own places are ordered for a location, and how directory
+/// places are matched to them.
+enum PlaceRanking {
+    /// Distance bands, in metres. Places are ranked by band, then by use and
+    /// recency within a band: two places a few hundred metres apart are both
+    /// within the fix's error and the centre of past answers' spread, so the
+    /// one used more is the better guess.
+    static let bands: [Double] = [150, 400, 1_000, 5_000, 25_000]
+    /// Without a search, only places within this distance, in metres, are
+    /// offered: the user is probably at one of them. Places further away
+    /// are found by searching.
+    static let nearDistance: Double = 500
+    /// A directory place this close to one of the user's places with the same
+    /// name, in metres, is taken to be that place.
+    static let matchDistance: Double = 200
+
+    /// The index of the band `distance` falls in. Places with no known
+    /// distance come last.
+    static func band(for distance: Double?) -> Int {
+        guard let distance else { return bands.count + 1 }
+        return bands.firstIndex { distance <= $0 } ?? bands.count
+    }
+
+    /// `entries` ranked by distance from `origin`, each with its distance.
+    /// Without an origin they keep their order, which is by use and recency.
+    static func rank(
+        _ entries: [VocabularyEntry],
+        from origin: Coordinate?
+    ) -> [(entry: VocabularyEntry, distance: Double?)] {
+        let measured = entries.map { entry in
+            (entry: entry, distance: origin.flatMap { origin in entry.coordinate?.distance(to: origin) })
+        }
+        guard origin != nil else { return measured }
+        return measured.sorted { lhs, rhs in
+            let lhsBand = band(for: lhs.distance)
+            let rhsBand = band(for: rhs.distance)
+            if lhsBand != rhsBand { return lhsBand < rhsBand }
+            return Vocabulary.ranksBefore(lhs.entry, rhs.entry)
+        }
+    }
+
+    /// The user's place that `place` is, if any: one with the same MapKit
+    /// ID, or a place from before MapKit (with no MapKit ID) with the same
+    /// name nearby.
+    static func match(_ place: DirectoryPlace, in entries: [VocabularyEntry]) -> VocabularyEntry? {
+        if let entry = entries.first(where: {
+            $0.externalID == ExternalPlaceID(source: .mapKit, value: place.id)
+        }) {
+            return entry
+        }
+        return entries.first { entry in
+            guard entry.externalID?.source != .mapKit, let coordinate = entry.coordinate else {
+                return false
+            }
+            return entry.text.compare(place.name, options: [.caseInsensitive, .diacriticInsensitive])
+                == .orderedSame
+                && coordinate.distance(to: place.coordinate) <= matchDistance
+        }
+    }
+}

diff --git a/Reportage/Views/Survey/PlaceAnswerView.swift b/Reportage/Views/Survey/PlaceAnswerView.swift

@@ -0,0 +1,237 @@
+import MapKit
+import SwiftUI
+
+/// Answers a `location` question: a map of where the report is, and the
+/// places to choose from. Choosing one pins it on the map.
+struct PlaceAnswerView: View {
+    let picker: PlacePicker
+    let placeholder: String?
+
+    @FocusState private var isSearchFocused: Bool
+
+    var body: some View {
+        @Bindable var picker = picker
+        VStack(spacing: 20) {
+            // The map makes way for the keyboard while searching.
+            if showsMap && !isSearchFocused {
+                PlaceMap(
+                    location: picker.location?.coordinate,
+                    isLocating: picker.locationState == .locating,
+                    selection: picker.selection
+                )
+                .transition(.opacity)
+            }
+            TokenSearchField(
+                query: $picker.query,
+                placeholder: placeholder ?? String(localized: "Search places"),
+                isFocused: $isSearchFocused,
+                onSubmit: {}
+            )
+            PlaceList(
+                picker: picker,
+                onToggle: { candidate in
+                    picker.toggle(candidate)
+                    isSearchFocused = false
+                },
+                onAdd: {
+                    picker.addQuery()
+                    isSearchFocused = false
+                }
+            )
+        }
+        .animation(.snappy, value: isSearchFocused)
+        .animation(.snappy, value: showsMap)
+    }
+
+    /// The map is left out only when there's nothing to put on it.
+    private var showsMap: Bool {
+        picker.locationState != .unavailable || picker.selection?.coordinate != nil
+    }
+}
+
+/// Where the report is, and the chosen place. The map centres on the chosen
+/// place, zoomed out far enough to show the report's location too.
+struct PlaceMap: View {
+    let location: Coordinate?
+    let isLocating: Bool
+    let selection: PlaceCandidate?
+
+    @State private var position: MapCameraPosition = .automatic
+
+    var body: some View {
+        ZStack {
+            if let focus {
+                Map(position: $position, interactionModes: [.pan, .zoom]) {
+                    if let location {
+                        Annotation(String(localized: "You are here"), coordinate: .init(location), anchor: .center) {
+                            HereMarker()
+                        }
+                        .annotationTitles(.hidden)
+                    }
+                    if let selection, let coordinate = selection.coordinate {
+                        Marker(selection.name, coordinate: .init(coordinate))
+                            .tint(Theme.accent)
+                    }
+                }
+                .mapStyle(.standard(elevation: .flat, emphasis: .muted, pointsOfInterest: .excludingAll))
+                .onAppear { position = camera(on: focus) }
+                .onChange(of: focus) {
+                    withAnimation(.smooth) { position = camera(on: focus) }
+                }
+            } else if isLocating {
+                HStack(spacing: 10) {
+                    ProgressView()
+                    Text("Finding where you are…")
+                        .font(.subheadline)
+                }
+                .foregroundStyle(Theme.muted)
+            }
+        }
+        .frame(maxWidth: .infinity)
+        .frame(height: 180)
+        .clipShape(.rect(cornerRadius: 12))
+        .overlay(RoundedRectangle(cornerRadius: 12).strokeBorder(Theme.rule))
+        .padding(.horizontal, 24)
+    }
+
+    /// What the map centres on: the chosen place, or else the report's
+    /// location.
+    private var focus: Coordinate? {
+        selection?.coordinate ?? location
+    }
+
+    private func camera(on focus: Coordinate) -> MapCameraPosition {
+        var span: CLLocationDistance = 500
+        if let location, focus != location {
+            span = min(max(span, focus.distance(to: location) * 2.4), 50_000)
+        }
+        return .region(
+            MKCoordinateRegion(center: .init(focus), latitudinalMeters: span, longitudinalMeters: span))
+    }
+}
+
+/// The report's location: an accent dot ringed in paper.
+struct HereMarker: View {
+    var body: some View {
+        Circle()
+            .fill(Theme.accent)
+            .frame(width: 14, height: 14)
+            .padding(3)
+            .background(Theme.paper, in: .circle)
+            .shadow(color: .black.opacity(0.2), radius: 2, y: 1)
+            .accessibilityLabel(Text("You are here"))
+    }
+}
+
+struct PlaceList: View {
+    let picker: PlacePicker
+    let onToggle: (PlaceCandidate) -> Void
+    let onAdd: () -> Void
+
+    var body: some View {
+        List {
+            if picker.canAddQuery {
+                AddTokenRow(
+                    text: picker.query.trimmingCharacters(in: .whitespacesAndNewlines),
+                    detail: picker.location == nil ? nil : Text("A new place, where you are now"),
+                    onAdd: onAdd
+                )
+                .listRowStyle()
+            }
+            ForEach(picker.sections) { section in
+                Section {
+                    ForEach(section.candidates) { candidate in
+                        PlaceRow(
+                            candidate: candidate,
+                            isSelected: picker.isSelected(candidate),
+                            onToggle: { onToggle(candidate) }
+                        )
+                        .listRowStyle()
+                    }
+                } header: {
+                    PlaceSectionHeader(kind: section.kind)
+                }
+            }
+            if picker.isSearching {
+                ProgressView()
+                    .frame(maxWidth: .infinity, minHeight: 52)
+                    .listRowStyle()
+                    .listRowSeparator(.hidden)
+            }
+        }
+        .listStyle(.plain)
+        .scrollContentBackground(.hidden)
+        .scrollDismissesKeyboard(.immediately)
+    }
+}
+
+struct PlaceSectionHeader: View {
+    let kind: PlaceSection.Kind
+
+    var body: some View {
+        title
+            .eyebrow()
+            .frame(maxWidth: .infinity, alignment: .leading)
+            .padding(.top, 12)
+            .padding(.bottom, 4)
+            .listRowInsets(EdgeInsets(top: 0, leading: 24, bottom: 0, trailing: 24))
+            .background(Theme.paper)
+    }
+
+    private var title: Text {
+        switch kind {
+        case .yours: Text("Your places", comment: "Heading for the user's own places")
+        case .nearby: Text("Nearby", comment: "Heading for places near the user from Apple Maps")
+        case .results: Text("More places", comment: "Heading for place search results from Apple Maps")
+        }
+    }
+}
+
+struct PlaceRow: View {
+    let candidate: PlaceCandidate
+    let isSelected: Bool
+    let onToggle: () -> Void
+
+    var body: some View {
+        Button(action: onToggle) {
+            HStack(spacing: 12) {
+                VStack(alignment: .leading, spacing: 2) {
+                    Text(candidate.name)
+                        .font(Theme.serif(.body))
+                        .foregroundStyle(Theme.ink)
+                    if let detail = candidate.detail {
+                        Text(detail)
+                            .font(.footnote)
+                            .foregroundStyle(Theme.muted)
+                            .lineLimit(1)
+                    }
+                }
+                Spacer()
+                if isSelected {
+                    Image(systemName: "checkmark")
+                        .font(.body.weight(.semibold))
+                        .foregroundStyle(Theme.accent)
+                } else if let distance = candidate.distance {
+                    Text(Self.format(distance))
+                        .font(.caption)
+                        .monospacedDigit()
+                        .foregroundStyle(Theme.muted)
+                }
+            }
+            .padding(.vertical, 6)
+            .frame(minHeight: 52)
+            .contentShape(.rect)
+        }
+        .buttonStyle(.plain)
+        .accessibilityAddTraits(isSelected ? .isSelected : [])
+    }
+
+    static func format(_ distance: Double) -> String {
+        Measurement(value: distance, unit: UnitLength.meters).formatted(
+            .measurement(
+                width: .abbreviated,
+                usage: .road,
+                numberFormatStyle: .number.precision(.significantDigits(1...2))
+            ))
+    }
+}

diff --git a/Reportage/Views/Survey/PlacePicker.swift b/Reportage/Views/Survey/PlacePicker.swift

@@ -0,0 +1,341 @@
+import Foundation
+import Observation
+
+/// A place that can be chosen as an answer: one of the user's own places, or
+/// one from the directory.
+struct PlaceCandidate: Identifiable, Hashable, Sendable {
+    enum Source: Hashable, Sendable {
+        case own
+        case directory
+    }
+
+    /// The token ID for the user's own places; `mapKit:` and the MapKit ID
+    /// for directory places.
+    var id: String
+    var source: Source
+    var name: String
+    var coordinate: Coordinate?
+    /// Metres from the report's location, when both are known.
+    var distance: Double?
+    /// A short address, for directory places.
+    var detail: String?
+}
+
+/// A group of candidates, listed under a heading.
+struct PlaceSection: Identifiable, Hashable, Sendable {
+    enum Kind: Hashable, Sendable {
+        /// The user's places: those near the location, or all of them when
+        /// it isn't known, or those matching a search.
+        case yours
+        /// Directory places around the location.
+        case nearby
+        /// Directory places matching a search.
+        case results
+    }
+
+    var kind: Kind
+    var candidates: [PlaceCandidate]
+
+    var id: Kind { kind }
+}
+
+/// Searching, choosing and adding a place for one `location` question.
+///
+/// Candidates come in the order the design gives: the user's own places near
+/// the report's location, ranked by distance, then nearby directory places.
+/// Places further away are found by searching, which looks through the
+/// user's places and the directory together. A directory place that's already one
+/// of the user's places is shown as theirs.
+@MainActor
+@Observable
+final class PlacePicker {
+    enum LocationState: Hashable, Sendable {
+        case locating
+        case found(LocationContext)
+        case unavailable
+    }
+
+    let questionID: String
+
+    var query = "" {
+        didSet {
+            guard query != oldValue else { return }
+            update()
+            search()
+        }
+    }
+
+    private(set) var locationState: LocationState = .locating
+    private(set) var sections: [PlaceSection] = []
+    /// Whether `query` names none of the user's places, so it can be added.
+    private(set) var canAddQuery = false
+    private(set) var selection: PlaceCandidate?
+    /// Whether a directory search is under way.
+    private(set) var isSearching = false
+
+    private var entries: [VocabularyEntry]
+    private var nearby: [DirectoryPlace] = []
+    private var results: [DirectoryPlace] = []
+    /// Places added in this survey, by token ID.
+    private var newTokens: [String: Token] = [:]
+    /// Token IDs given to directory places chosen in this survey, by MapKit
+    /// ID, so choosing one again reuses its token.
+    private var directoryTokenIDs: [String: String] = [:]
+
+    private let directory: any PlaceDirectory
+    private let searchDelay: Duration
+    private var nearbyTask: Task<Void, Never>?
+    private var searchTask: Task<Void, Never>?
+
+    init(
+        questionID: String,
+        entries: [VocabularyEntry],
+        directory: any PlaceDirectory,
+        searchDelay: Duration = .milliseconds(300)
+    ) {
+        self.questionID = questionID
+        self.entries = entries
+        self.directory = directory
+        self.searchDelay = searchDelay
+        update()
+    }
+
+    var location: LocationContext? {
+        if case .found(let location) = locationState { location } else { nil }
+    }
+
+    /// The token ID of the chosen place.
+    var selectedTokenID: String? {
+        guard let selection else { return nil }
+        switch selection.source {
+        case .own: return selection.id
+        case .directory: return directoryTokenIDs[Self.mapKitID(of: selection)]
+        }
+    }
+
+    func isSelected(_ candidate: PlaceCandidate) -> Bool { selection?.id == candidate.id }
+
+    /// The listed candidate with `id`, if any.
+    func candidate(id: String) -> PlaceCandidate? {
+        sections.lazy.flatMap(\.candidates).first { $0.id == id }
+    }
+
+    // MARK: Choosing
+
+    func toggle(_ candidate: PlaceCandidate) {
+        if isSelected(candidate) {
+            selection = nil
+            return
+        }
+        if candidate.source == .directory {
+            adopt(candidate)
+        }
+        selection = candidate
+    }
+
+    /// Chooses the user's place that `query` names, or adds a new place by
+    /// that name at the report's location, and clears the query.
+    func addQuery() {
+        let text = query.trimmingCharacters(in: .whitespacesAndNewlines)
+        guard !text.isEmpty else { return }
+        let chosen: VocabularyEntry
+        if let existing = entry(named: text) {
+            chosen = existing
+        } else {
+            let coordinate = location?.coordinate
+            chosen = VocabularyEntry(id: UUID().uuidString, text: text, useCount: 0, coordinate: coordinate)
+            newTokens[chosen.id] = Token(
+                id: chosen.id,
+                questionID: questionID,
+                text: text,
+                place: PlaceDetails(coordinate: coordinate),
+                modifiedAt: Date()
+            )
+            entries.insert(chosen, at: 0)
+        }
+        query = ""
+        selection = candidate(id: chosen.id)
+    }
+
+    func clear() {
+        selection = nil
+        query = ""
+    }
+
+    /// The place added in this survey, if it's the one chosen.
+    func usedNewTokens(now: Date) -> [Token] {
+        guard let id = selectedTokenID, var token = newTokens[id] else { return [] }
+        token.modifiedAt = now
+        return [token]
+    }
+
+    /// Gives a directory place a token, the first time it's chosen.
+    private func adopt(_ candidate: PlaceCandidate) {
+        let mapKitID = Self.mapKitID(of: candidate)
+        guard directoryTokenIDs[mapKitID] == nil,
+            let place = (nearby + results).first(where: { $0.id == mapKitID })
+        else { return }
+        let id = UUID().uuidString
+        directoryTokenIDs[mapKitID] = id
+        newTokens[id] = Token(
+            id: id,
+            questionID: questionID,
+            text: place.name,
+            place: PlaceDetails(
+                coordinate: place.coordinate,
+                names: place.language.map { [LocalisedName(language: $0, text: place.name)] } ?? [],
+                externalID: ExternalPlaceID(source: .mapKit, value: place.id)
+            ),
+            modifiedAt: Date()
+        )
+    }
+
+    // MARK: Location
+
+    /// Sets the report's location, once: later fixes and a missing one after
+    /// a fix are ignored, so the list doesn't reshuffle under the user's
+    /// finger. `nil` means there won't be one.
+    func setLocation(_ location: LocationContext?) {
+        guard locationState == .locating else { return }
+        guard let location else {
+            locationState = .unavailable
+            return
+        }
+        locationState = .found(location)
+        update()
+        nearbyTask = Task {
+            let places = (try? await directory.places(near: location.coordinate)) ?? []
+            nearby = places.sorted {
+                $0.coordinate.distance(to: location.coordinate)
+                    < $1.coordinate.distance(to: location.coordinate)
+            }
+            update()
+        }
+        if !query.isEmpty { search() }
+    }
+
+    // MARK: Searching
+
+    /// Searches the directory for `query`, after a pause so a search isn't
+    /// made for every keystroke. Earlier results stay listed until the new
+    /// ones arrive.
+    private func search() {
+        searchTask?.cancel()
+        let text = query.trimmingCharacters(in: .whitespacesAndNewlines)
+        guard !text.isEmpty else {
+            results = []
+            isSearching = false
+            update()
+            return
+        }
+        isSearching = true
+        let near = location?.coordinate
+        searchTask = Task {
+            try? await Task.sleep(for: searchDelay)
+            guard !Task.isCancelled else { return }
+            let found = try? await directory.search(text, near: near)
+            guard !Task.isCancelled else { return }
+            results = found ?? []
+            isSearching = false
+            update()
+        }
+    }
+
+    /// Waits for directory requests under way. For tests.
+    func settle() async {
+        await nearbyTask?.value
+        await searchTask?.value
+    }
+
+    // MARK: Listing
+
+    private func update() {
+        let text = query.trimmingCharacters(in: .whitespacesAndNewlines)
+        let origin = location?.coordinate
+        let matching = text.isEmpty ? entries : entries.filter { $0.text.localizedStandardContains(text) }
+        let own = PlaceRanking.rank(matching, from: origin).map { ranked in
+            PlaceCandidate(
+                id: ranked.entry.id,
+                source: .own,
+                name: ranked.entry.text,
+                coordinate: ranked.entry.coordinate,
+                distance: ranked.distance
+            )
+        }
+
+        let directoryPlaces = text.isEmpty ? nearby : results
+        if text.isEmpty, origin != nil {
+            let near = Array(own.prefix { ($0.distance ?? .infinity) <= PlaceRanking.nearDistance })
+            sections = [
+                PlaceSection(kind: .yours, candidates: near),
+                PlaceSection(
+                    kind: .nearby,
+                    candidates: directoryCandidates(directoryPlaces, excluding: near, from: origin)),
+            ]
+        } else {
+            sections = [
+                PlaceSection(kind: .yours, candidates: own),
+                PlaceSection(
+                    kind: text.isEmpty ? .nearby : .results,
+                    candidates: directoryCandidates(directoryPlaces, excluding: own, from: origin)),
+            ]
+        }
+        sections.removeAll { $0.candidates.isEmpty }
+        canAddQuery = !text.isEmpty && entry(named: text) == nil
+        // Keep the chosen place's details current, such as its distance once
+        // the location is known.
+        if let selection {
+            self.selection = candidate(id: selection.id) ?? selection
+        }
+    }
+
+    /// Candidates for directory places, leaving out those already listed.
+    /// A directory place that's already one of the user's places is shown
+    /// as theirs, at the directory's coordinate: it's more precise than the
+    /// centre of past answers.
+    private func directoryCandidates(
+        _ places: [DirectoryPlace],
+        excluding listed: [PlaceCandidate],
+        from origin: Coordinate?
+    ) -> [PlaceCandidate] {
+        var listed = Set(listed.map(\.id))
+        return places.compactMap { place in
+            let candidate = candidate(for: place, from: origin)
+            return listed.insert(candidate.id).inserted ? candidate : nil
+        }
+    }
+
+    private func candidate(for place: DirectoryPlace, from origin: Coordinate?) -> PlaceCandidate {
+        let distance = origin.map { place.coordinate.distance(to: $0) }
+        if let entry = PlaceRanking.match(place, in: entries) {
+            return PlaceCandidate(
+                id: entry.id,
+                source: .own,
+                name: entry.text,
+                coordinate: place.coordinate,
+                distance: distance
+            )
+        }
+        return PlaceCandidate(
+            id: Self.mapKitPrefix + place.id,
+            source: .directory,
+            name: place.name,
+            coordinate: place.coordinate,
+            distance: distance,
+            detail: place.detail
+        )
+    }
+
+    private func entry(named text: String) -> VocabularyEntry? {
+        entries.first {
+            $0.text.compare(text, options: [.caseInsensitive, .diacriticInsensitive])
+                == .orderedSame
+        }
+    }
+
+    private static let mapKitPrefix = "mapKit:"
+
+    private static func mapKitID(of candidate: PlaceCandidate) -> String {
+        String(candidate.id.dropFirst(mapKitPrefix.count))
+    }
+}

diff --git a/Reportage/Views/Survey/QuestionPage.swift b/Reportage/Views/Survey/QuestionPage.swift

@@ -24,10 +24,14 @@ struct QuestionPage: View {
                     selection: $model[optionFor: question.id],
                     onAnswer: onAnswer
                 )
-            case .tokens, .people, .location:
+            case .tokens, .people:
                 if let picker = model.pickers[question.id] {
                     TokenAnswer(picker: picker, placeholder: question.placeholder)
                 }
+            case .location:
+                if let picker = model.placePickers[question.id] {
+                    PlaceAnswerView(picker: picker, placeholder: question.placeholder)
+                }
             case .number:
                 NumberAnswer(value: $model[numberFor: question.id], placeholder: question.placeholder)
             case .note:

diff --git a/Reportage/Views/Survey/SurveyModel.swift b/Reportage/Views/Survey/SurveyModel.swift

@@ -11,9 +11,11 @@ final class SurveyModel {
     let date: Date
     let timeZone: String
     let questions: [Question]
-    /// Pickers for `tokens`, `people` and `location` questions, by question
-    /// ID. They're created once so each page keeps its search and selection.
+    /// Pickers for `tokens` and `people` questions, and for `location`
+    /// questions, by question ID. They're created once so each page keeps its
+    /// search and selection.
     let pickers: [String: TokenPicker]
+    let placePickers: [String: PlacePicker]
 
     private(set) var index = 0
     /// Whether the last page change went forwards, for the page transition.
@@ -27,28 +29,35 @@ final class SurveyModel {
         date: Date,
         timeZone: TimeZone = .current,
         questions: [Question],
-        vocabulary: [String: [VocabularyEntry]]
+        vocabulary: [String: [VocabularyEntry]],
+        directory: any PlaceDirectory = MapKitPlaceDirectory()
     ) {
         self.kind = kind
         self.date = date
         self.timeZone = timeZone.identifier
         self.questions = questions
         var pickers: [String: TokenPicker] = [:]
+        var placePickers: [String: PlacePicker] = [:]
         for question in questions {
-            let allowsMultiple: Bool
             switch question.kind {
-            case .tokens, .people: allowsMultiple = true
-            case .location: allowsMultiple = false
-            case .yesNo, .choice, .number, .note: continue
+            case .tokens, .people:
+                pickers[question.id] = TokenPicker(
+                    questionID: question.id,
+                    allowsMultiple: true,
+                    entries: vocabulary[question.id] ?? []
+                )
+            case .location:
+                placePickers[question.id] = PlacePicker(
+                    questionID: question.id,
+                    entries: vocabulary[question.id] ?? [],
+                    directory: directory
+                )
+            case .yesNo, .choice, .number, .note:
+                continue
             }
-            pickers[question.id] = TokenPicker(
-                questionID: question.id,
-                allowsMultiple: allowsMultiple,
-                isPlace: question.kind == .location,
-                entries: vocabulary[question.id] ?? []
-            )
         }
         self.pickers = pickers
+        self.placePickers = placePickers
     }
 
     var currentQuestion: Question? {
@@ -105,7 +114,7 @@ final class SurveyModel {
             }
             return .tokens(selection)
         case .location:
-            guard let tokenID = pickers[question.id]?.selection.first else { return nil }
+            guard let tokenID = placePickers[question.id]?.selectedTokenID else { return nil }
             return .place(PlaceAnswer(tokenID: tokenID))
         }
     }
@@ -139,15 +148,26 @@ final class SurveyModel {
         guard let question = currentQuestion else { return }
         answers[question.id] = nil
         pickers[question.id]?.clear()
+        placePickers[question.id]?.clear()
     }
 
     // MARK: Context
 
     /// Starts capturing the report's live context. Called when the survey
-    /// opens, so the context describes the moment the report is about.
+    /// opens, so the context describes the moment the report is about. Place
+    /// pickers get the location as soon as there's a fix.
     func startCapture(_ capture: ContextCapture = ContextCapture()) {
         guard contextTask == nil else { return }
-        contextTask = Task { await capture.capture() }
+        let placePickers = Array(placePickers.values)
+        contextTask = Task {
+            let context = await capture.capture { location in
+                Task { @MainActor in
+                    for picker in placePickers { picker.setLocation(location) }
+                }
+            }
+            for picker in placePickers { picker.setLocation(context.location) }
+            return context
+        }
     }
 
     /// The captured context, waiting for the capture if it's still running.
@@ -177,7 +197,8 @@ final class SurveyModel {
             return Response(questionID: question.id, prompt: question.prompt, value: value)
         }
         let newTokens = questions.flatMap { question in
-            pickers[question.id]?.usedNewTokens(now: now) ?? []
+            pickers[question.id]?.usedNewTokens(now: now)
+                ?? placePickers[question.id]?.usedNewTokens(now: now) ?? []
         }
         let report = Report(
             id: id,
@@ -195,13 +216,13 @@ final class SurveyModel {
     }
 }
 
-/// Searching, selecting and adding tokens for one question.
+/// Searching, selecting and adding tokens for one `tokens` or `people`
+/// question.
 @MainActor
 @Observable
 final class TokenPicker {
     let questionID: String
     let allowsMultiple: Bool
-    let isPlace: Bool
 
     var query = "" {
         didSet { updateVisibleEntries() }
@@ -226,10 +247,9 @@ final class TokenPicker {
     /// Texts of tokens added in this survey, by ID.
     private var newTokenTexts: [String: String] = [:]
 
-    init(questionID: String, allowsMultiple: Bool, isPlace: Bool, entries: [VocabularyEntry]) {
+    init(questionID: String, allowsMultiple: Bool, entries: [VocabularyEntry]) {
         self.questionID = questionID
         self.allowsMultiple = allowsMultiple
-        self.isPlace = isPlace
         self.entries = entries
         updateVisibleEntries()
     }
@@ -275,7 +295,6 @@ final class TokenPicker {
                     id: id,
                     questionID: questionID,
                     text: text,
-                    place: isPlace ? PlaceDetails() : nil,
                     modifiedAt: now
                 )
             }

diff --git a/Reportage/Views/Survey/TokenAnswer.swift b/Reportage/Views/Survey/TokenAnswer.swift

@@ -1,11 +1,13 @@
 import SwiftUI
 
-/// Answers a `tokens`, `people` or `location` question by picking from past
-/// answers, most used first, or adding a new one.
+/// Answers a `tokens` or `people` question by picking from past answers, most
+/// used first, or adding a new one.
 struct TokenAnswer: View {
     let picker: TokenPicker
     let placeholder: String?
 
+    @FocusState private var isSearchFocused: Bool
+
     var body: some View {
         @Bindable var picker = picker
         VStack(spacing: 20) {
@@ -15,6 +17,7 @@ struct TokenAnswer: View {
             TokenSearchField(
                 query: $picker.query,
                 placeholder: placeholder,
+                isFocused: $isSearchFocused,
                 onSubmit: picker.addQuery
             )
             TokenList(picker: picker)
@@ -58,6 +61,7 @@ struct SelectedTokens: View {
 struct TokenSearchField: View {
     @Binding var query: String
     let placeholder: String?
+    let isFocused: FocusState<Bool>.Binding
     let onSubmit: () -> Void
 
     var body: some View {
@@ -69,6 +73,7 @@ struct TokenSearchField: View {
                     .font(Theme.serif(.title3))
                     .autocorrectionDisabled()
                     .submitLabel(.done)
+                    .focused(isFocused)
                     .onSubmit(onSubmit)
                 if !query.isEmpty {
                     Button("Clear", systemImage: "xmark.circle.fill") { query = "" }
@@ -108,7 +113,7 @@ struct TokenList: View {
 }
 
 extension View {
-    fileprivate func listRowStyle() -> some View {
+    func listRowStyle() -> some View {
         listRowInsets(EdgeInsets(top: 0, leading: 24, bottom: 0, trailing: 24))
             .listRowBackground(Theme.paper)
             .listRowSeparatorTint(Theme.rule)
@@ -117,6 +122,8 @@ extension View {
 
 struct AddTokenRow: View {
     let text: String
+    /// A line beneath, saying what adding it will do.
+    var detail: Text?
     let onAdd: () -> Void
 
     var body: some View {
@@ -124,8 +131,15 @@ struct AddTokenRow: View {
             HStack(spacing: 10) {
                 Image(systemName: "plus")
                     .font(.body.weight(.semibold))
-                Text("Add “\(text)”", comment: "Adds the typed text as a new answer")
-                    .font(Theme.serif(.title3))
+                VStack(alignment: .leading, spacing: 2) {
+                    Text("Add “\(text)”", comment: "Adds the typed text as a new answer")
+                        .font(Theme.serif(.title3))
+                    if let detail {
+                        detail
+                            .font(.footnote)
+                            .foregroundStyle(Theme.muted)
+                    }
+                }
                 Spacer()
             }
             .foregroundStyle(Theme.accent)

diff --git a/Shared/Capture/ContextCapture.swift b/Shared/Capture/ContextCapture.swift

@@ -21,15 +21,22 @@ struct ContextCapture: Sendable {
     /// Time kept back from the location search for looking up the address.
     var geocodingAllowance: Duration = .seconds(3)
 
-    func capture() async -> Context {
-        async let location = captureLocation()
+    /// Captures the context. `onLocation` is called as soon as there's a
+    /// fix, before its address has been looked up, so places near it can be
+    /// suggested while the capture finishes.
+    func capture(
+        onLocation: @escaping @Sendable (LocationContext) -> Void = { _ in }
+    ) async -> Context {
+        async let location = captureLocation(onLocation: onLocation)
         async let device = captureDevice()
         return Context(location: await location, device: await device)
     }
 
     // MARK: Location
 
-    private func captureLocation() async -> LocationContext? {
+    private func captureLocation(
+        onLocation: @Sendable (LocationContext) -> Void
+    ) async -> LocationContext? {
         // Holding a session is what asks for authorisation. While the prompt
         // is on screen the budget hasn't started: the user is reading it.
         let session = CLServiceSession(authorization: .whenInUse)
@@ -37,6 +44,7 @@ struct ContextCapture: Sendable {
         guard await Self.isAuthorised(session) else { return nil }
         guard let fix = await bestFix(within: budget - geocodingAllowance) else { return nil }
         var context = LocationContext(fix)
+        onLocation(context)
         let placemarks = await withTimeout(geocodingAllowance) {
             await Self.placemarks(for: fix)
         }

diff --git a/Shared/Persistence/Vocabulary.swift b/Shared/Persistence/Vocabulary.swift

@@ -8,6 +8,11 @@ struct VocabularyEntry: Identifiable, Hashable, Sendable {
     var text: String
     var useCount: Int
     var lastUsed: Date?
+    /// For places: the token's coordinate, or the centre of the answers
+    /// given for it.
+    var coordinate: Coordinate?
+    /// For places picked from a directory.
+    var externalID: ExternalPlaceID?
 }
 
 /// The derived, local-only index that ranks suggestions from response
@@ -17,6 +22,8 @@ enum Vocabulary {
     /// Suggestions for each of `questionIDs`, most used first, then most
     /// recently used. Archived tokens and tokens merged into others are left
     /// out; uses of a merged token count towards the token it was merged into.
+    /// A place with no coordinate of its own is placed at the centre of where
+    /// its answers were given.
     static func entries(
         for questionIDs: [String],
         in context: NSManagedObjectContext
@@ -42,6 +49,7 @@ enum Vocabulary {
 
         var useCounts: [String: Int] = [:]
         var lastUsed: [String: Date] = [:]
+        var answerCoordinates: [String: (latitude: Double, longitude: Double, count: Int)] = [:]
         let responseRequest = NSFetchRequest<NSDictionary>(entityName: "ResponseEntity")
         responseRequest.resultType = .dictionaryResultType
         responseRequest.predicate = NSPredicate(
@@ -52,7 +60,16 @@ enum Vocabulary {
             let ids: [String]
             switch try ModelCoding.decode(ResponseValue.self, from: data) {
             case .tokens(let tokenIDs): ids = tokenIDs
-            case .place(let place): ids = [place.tokenID]
+            case .place(let place):
+                ids = [place.tokenID]
+                if let coordinate = place.coordinate {
+                    let sum = answerCoordinates[canonical(place.tokenID)] ?? (0, 0, 0)
+                    answerCoordinates[canonical(place.tokenID)] = (
+                        sum.latitude + coordinate.latitude,
+                        sum.longitude + coordinate.longitude,
+                        sum.count + 1
+                    )
+                }
             default: continue
             }
             let date = row["report.date"] as? Date
@@ -66,12 +83,19 @@ enum Vocabulary {
 
         var entries: [String: [VocabularyEntry]] = [:]
         for token in tokens where token.mergedInto == nil && token.archivedAt == nil {
+            let centre = answerCoordinates[token.id].map {
+                Coordinate(
+                    latitude: $0.latitude / Double($0.count),
+                    longitude: $0.longitude / Double($0.count))
+            }
             entries[token.questionID, default: []].append(
                 VocabularyEntry(
                     id: token.id,
                     text: token.text,
                     useCount: useCounts[token.id] ?? 0,
-                    lastUsed: lastUsed[token.id]
+                    lastUsed: lastUsed[token.id],
+                    coordinate: token.place?.coordinate ?? centre,
+                    externalID: token.place?.externalID
                 ))
         }
         for questionID in entries.keys {

diff --git a/Tests/Unit/ContextCaptureTests.swift b/Tests/Unit/ContextCaptureTests.swift

@@ -68,14 +68,15 @@ struct ContextCaptureTests {
 struct SurveyModelContextTests {
 
     @Test("The captured context is saved, and place answers record where they were given")
-    func placeCoordinate() {
+    func placeCoordinate() throws {
         let question = Question(
             id: "place", prompt: "Where?", kind: .location, askOn: .random, order: 0,
             modifiedAt: Date(timeIntervalSince1970: 0))
         let model = SurveyModel(
             kind: .manual, date: Date(), questions: [question],
             vocabulary: ["place": [VocabularyEntry(id: "P1", text: "Home", useCount: 1)]])
-        model.pickers["place"]?.toggle("P1")
+        let picker = try #require(model.placePickers["place"])
+        picker.toggle(try #require(picker.candidate(id: "P1")))
 
         var context = Context()
         context.location = LocationContext(

diff --git a/Tests/Unit/PlacePickerTests.swift b/Tests/Unit/PlacePickerTests.swift

@@ -0,0 +1,237 @@
+import Foundation
+import Testing
+
+@testable import Reportage
+
+/// A directory with fixed answers.
+private struct FakeDirectory: PlaceDirectory {
+    var nearby: [DirectoryPlace] = []
+    var results: [String: [DirectoryPlace]] = [:]
+
+    func places(near coordinate: Coordinate) async throws -> [DirectoryPlace] { nearby }
+
+    func search(_ query: String, near coordinate: Coordinate?) async throws -> [DirectoryPlace] {
+        results[query] ?? []
+    }
+}
+
+@MainActor
+@Suite("PlacePicker")
+struct PlacePickerTests {
+
+    /// The report's location.
+    private static let here = Coordinate(latitude: 35, longitude: 139)
+
+    /// A coordinate about `metres` north of `here`.
+    private static func north(_ metres: Double) -> Coordinate {
+        Coordinate(latitude: here.latitude + metres / 111_000, longitude: here.longitude)
+    }
+
+    private static func entry(
+        _ id: String, _ text: String, uses: Int, at coordinate: Coordinate?,
+        externalID: ExternalPlaceID? = nil
+    ) -> VocabularyEntry {
+        VocabularyEntry(
+            id: id, text: text, useCount: uses, coordinate: coordinate, externalID: externalID)
+    }
+
+    private static func directoryPlace(_ id: String, _ name: String, at coordinate: Coordinate)
+        -> DirectoryPlace
+    {
+        DirectoryPlace(id: id, name: name, coordinate: coordinate, detail: "1 Street", language: "en")
+    }
+
+    private static let entries = [
+        entry("home", "Home", uses: 900, at: north(350)),
+        entry("cafe", "Café", uses: 20, at: north(60)),
+        entry("bar", "Bar", uses: 40, at: north(120)),
+        entry("office", "Office", uses: 500, at: north(8_000)),
+        entry("unplaced", "Somewhere", uses: 5, at: nil),
+    ]
+
+    private func makePicker(
+        entries: [VocabularyEntry] = Self.entries,
+        directory: FakeDirectory = FakeDirectory()
+    ) -> PlacePicker {
+        PlacePicker(questionID: "Q", entries: entries, directory: directory, searchDelay: .zero)
+    }
+
+    private func ids(_ picker: PlacePicker) -> [PlaceSection.Kind: [String]] {
+        Dictionary(uniqueKeysWithValues: picker.sections.map { ($0.kind, $0.candidates.map(\.id)) })
+    }
+
+    @Test("Without a location, the user's places are listed by use")
+    func noLocation() {
+        let picker = makePicker()
+        #expect(picker.locationState == .locating)
+        #expect(ids(picker) == [.yours: ["home", "cafe", "bar", "office", "unplaced"]])
+
+        picker.setLocation(nil)
+        #expect(picker.locationState == .unavailable)
+        // A late fix doesn't reshuffle the list.
+        picker.setLocation(LocationContext(coordinate: Self.here))
+        #expect(picker.location == nil)
+    }
+
+    @Test("Only near places are listed, by distance band then use, before nearby directory places")
+    func ranking() async {
+        let directory = FakeDirectory(nearby: [
+            Self.directoryPlace("far", "Bakery", at: Self.north(200)),
+            Self.directoryPlace("close", "Kiosk", at: Self.north(30)),
+        ])
+        let picker = makePicker(directory: directory)
+        picker.setLocation(LocationContext(coordinate: Self.here))
+        await picker.settle()
+
+        // Bar and Café are both within the first band, so Bar's greater use
+        // puts it first. Home is in the next band. Office is too far away,
+        // and Somewhere's distance isn't known.
+        #expect(
+            ids(picker) == [
+                .yours: ["bar", "cafe", "home"],
+                .nearby: ["mapKit:close", "mapKit:far"],
+            ])
+        #expect(picker.sections.map(\.kind) == [.yours, .nearby])
+        let distance = try? #require(picker.candidate(id: "cafe")?.distance)
+        #expect(abs((distance ?? 0) - 60) < 1)
+
+        // Places further away are found by searching.
+        picker.query = "o"
+        #expect(ids(picker)[.yours] == ["home", "office", "unplaced"])
+        #expect(picker.candidate(id: "unplaced")?.distance == nil)
+    }
+
+    @Test("Directory places that are the user's are shown as theirs")
+    func merging() async throws {
+        let entries = [
+            Self.entry(
+                "saved", "My Café", uses: 3, at: Self.north(5_000),
+                externalID: ExternalPlaceID(source: .mapKit, value: "M1")),
+            Self.entry(
+                "old", "Library", uses: 2, at: Self.north(2_000),
+                externalID: ExternalPlaceID(source: .foursquare, value: "F1")),
+        ]
+        let directory = FakeDirectory(nearby: [
+            // The same MapKit ID, though named differently and far apart.
+            Self.directoryPlace("M1", "Café Lumière", at: Self.north(40)),
+            // The same name near a Foursquare-era place.
+            Self.directoryPlace("M2", "library", at: Self.north(1_900)),
+            // The same name, but too far away to be the same place.
+            Self.directoryPlace("M3", "Library", at: Self.north(100)),
+        ])
+        let picker = makePicker(entries: entries, directory: directory)
+        picker.setLocation(LocationContext(coordinate: Self.here))
+        await picker.settle()
+
+        // Both places are beyond the near distance, so they're listed only
+        // because the directory has them nearby.
+        #expect(ids(picker) == [.nearby: ["saved", "mapKit:M3", "old"]])
+        #expect(picker.candidate(id: "saved")?.source == .own)
+        let distance = try #require(picker.candidate(id: "saved")?.distance)
+        #expect(abs(distance - 40) < 1)
+    }
+
+    @Test("Choosing a directory place makes a token with its names, coordinate and ID")
+    func adoptDirectoryPlace() async throws {
+        let place = Self.directoryPlace("M1", "Kiosk", at: Self.north(30))
+        let picker = makePicker(directory: FakeDirectory(nearby: [place]))
+        picker.setLocation(LocationContext(coordinate: Self.here))
+        await picker.settle()
+
+        let candidate = try #require(picker.candidate(id: "mapKit:M1"))
+        picker.toggle(candidate)
+        let tokenID = try #require(picker.selectedTokenID)
+        let token = try #require(picker.usedNewTokens(now: Date(timeIntervalSince1970: 9)).first)
+        #expect(token.id == tokenID)
+        #expect(token.questionID == "Q")
+        #expect(token.text == "Kiosk")
+        #expect(token.modifiedAt == Date(timeIntervalSince1970: 9))
+        #expect(
+            token.place
+                == PlaceDetails(
+                    coordinate: place.coordinate,
+                    names: [LocalisedName(language: "en", text: "Kiosk")],
+                    externalID: ExternalPlaceID(source: .mapKit, value: "M1")))
+
+        // Choosing another place leaves the directory place unsaved, and
+        // choosing it again reuses its token.
+        picker.toggle(try #require(picker.candidate(id: "home")))
+        #expect(picker.selectedTokenID == "home")
+        #expect(picker.usedNewTokens(now: Date()).isEmpty)
+        picker.toggle(candidate)
+        #expect(picker.selectedTokenID == tokenID)
+        picker.toggle(candidate)
+        #expect(picker.selection == nil)
+    }
+
+    @Test("A new place is added where the report is")
+    func addNewPlace() async throws {
+        let picker = makePicker()
+        picker.setLocation(LocationContext(coordinate: Self.here))
+        picker.query = "Park"
+        #expect(picker.canAddQuery)
+        picker.addQuery()
+
+        #expect(picker.query.isEmpty)
+        #expect(picker.selection?.name == "Park")
+        #expect(picker.selection?.distance == 0)
+        let token = try #require(picker.usedNewTokens(now: Date()).first)
+        #expect(token.text == "Park")
+        #expect(token.place == PlaceDetails(coordinate: Self.here))
+
+        // Typing an existing place's name chooses that place instead.
+        picker.query = "home"
+        #expect(!picker.canAddQuery)
+        picker.addQuery()
+        #expect(picker.selectedTokenID == "home")
+        #expect(picker.usedNewTokens(now: Date()).isEmpty)
+    }
+
+    @Test("A search looks through the user's places and the directory")
+    func search() async {
+        let directory = FakeDirectory(
+            nearby: [Self.directoryPlace("N1", "Kiosk", at: Self.north(30))],
+            results: [
+                "ba": [
+                    Self.directoryPlace("R1", "Bakery", at: Self.north(900)),
+                    Self.directoryPlace("R2", "Bank", at: Self.north(300)),
+                ]
+            ])
+        let picker = makePicker(directory: directory)
+        picker.setLocation(LocationContext(coordinate: Self.here))
+        await picker.settle()
+
+        picker.query = "ba"
+        #expect(picker.isSearching)
+        await picker.settle()
+        #expect(!picker.isSearching)
+        // Directory results keep the directory's order.
+        #expect(ids(picker) == [.yours: ["bar"], .results: ["mapKit:R1", "mapKit:R2"]])
+
+        picker.query = ""
+        #expect(picker.sections.map(\.kind) == [.yours, .nearby])
+    }
+
+    @Test("Clearing removes the choice and the search")
+    func clear() throws {
+        let picker = makePicker()
+        picker.toggle(try #require(picker.candidate(id: "cafe")))
+        picker.query = "x"
+        picker.clear()
+        #expect(picker.selection == nil)
+        #expect(picker.query.isEmpty)
+    }
+}
+
+@Suite("PlaceRanking")
+struct PlaceRankingTests {
+
+    @Test("Distances fall into bands, with unknown distances last")
+    func bands() {
+        #expect(PlaceRanking.band(for: 0) == 0)
+        #expect(PlaceRanking.band(for: 150) == 0)
+        #expect(PlaceRanking.band(for: 151) == 1)
+        #expect(PlaceRanking.band(for: 1_000_000) == PlaceRanking.bands.count)
+        #expect(PlaceRanking.band(for: nil) == PlaceRanking.bands.count + 1)
+    }
+}

diff --git a/Tests/Unit/ReportStoreTests.swift b/Tests/Unit/ReportStoreTests.swift

@@ -122,6 +122,38 @@ struct ReportStoreTests {
         #expect(entries["L"]?.map(\.useCount) == [1])
     }
 
+    @Test("A place is at its own coordinate, or else the centre of its answers")
+    func placeCoordinates() async throws {
+        let saved = PlaceDetails(
+            coordinate: Coordinate(latitude: 10, longitude: 20),
+            externalID: ExternalPlaceID(source: .mapKit, value: "M1"))
+        let tokens = [
+            Token(
+                id: "S", questionID: "L", text: "Saved", place: saved,
+                modifiedAt: Date(timeIntervalSince1970: 0)),
+            Token(
+                id: "U", questionID: "L", text: "Unplaced", place: PlaceDetails(),
+                modifiedAt: Date(timeIntervalSince1970: 0)),
+        ]
+        func answer(_ id: String, _ latitude: Double, _ longitude: Double) -> Response {
+            Response(
+                questionID: "L", prompt: "P",
+                value: .place(
+                    PlaceAnswer(
+                        tokenID: id, coordinate: Coordinate(latitude: latitude, longitude: longitude))))
+        }
+        try await store.insert(Self.report(1, responses: [answer("S", 50, 50)]), newTokens: tokens)
+        try await store.insert(Self.report(2, responses: [answer("U", 1, 2)]))
+        try await store.insert(Self.report(3, responses: [answer("U", 3, 6)]))
+
+        let entries = try #require(try await store.vocabulary(for: ["L"])["L"])
+        let byID = Dictionary(uniqueKeysWithValues: entries.map { ($0.id, $0) })
+        #expect(byID["S"]?.coordinate == saved.coordinate)
+        #expect(byID["S"]?.externalID == saved.externalID)
+        #expect(byID["U"]?.coordinate == Coordinate(latitude: 2, longitude: 4))
+        #expect(byID["U"]?.externalID == nil)
+    }
+
     @Test("A report and its new tokens are saved together")
     func insert() async throws {
         let token = Self.token("N", "New")

diff --git a/Tests/Unit/SurveyModelTests.swift b/Tests/Unit/SurveyModelTests.swift

@@ -64,8 +64,9 @@ struct SurveyModelTests {
         model[optionFor: "choice"] = "Good"
         model.pickers["tokens"]?.toggle("T2")
         model.pickers["tokens"]?.toggle("T1")
-        model.pickers["place"]?.toggle("P1")
-        model.pickers["place"]?.toggle("P2")
+        let places = try #require(model.placePickers["place"])
+        places.toggle(try #require(places.candidate(id: "P1")))
+        places.toggle(try #require(places.candidate(id: "P2")))
         model[numberFor: "number"] = Decimal(string: "2.5")
         model[textFor: "note"] = "A note"
 
@@ -145,12 +146,14 @@ struct SurveyModelTests {
     @Test("New place tokens carry place details")
     func newPlace() throws {
         let model = makeModel()
-        let picker = try #require(model.pickers["place"])
+        let picker = try #require(model.placePickers["place"])
         picker.query = "Library"
         picker.addQuery()
-        let newTokens = model.makeReport(now: Date()).newTokens
+        let newTokens = model.makeReport(now: Date(timeIntervalSince1970: 5)).newTokens
         #expect(newTokens.map(\.text) == ["Library"])
+        #expect(newTokens.first?.questionID == "place")
         #expect(newTokens.first?.place == PlaceDetails())
+        #expect(newTokens.first?.modifiedAt == Date(timeIntervalSince1970: 5))
     }
 }
 
@@ -162,7 +165,6 @@ struct TokenPickerTests {
         TokenPicker(
             questionID: "Q",
             allowsMultiple: allowsMultiple,
-            isPlace: false,
             entries: [
                 VocabularyEntry(id: "1", text: "Reading", useCount: 3),
                 VocabularyEntry(id: "2", text: "Cooking", useCount: 2),