# GTA6 School — Robbery POI Coordinate Workflow

> Scope: 103 named robbery POIs (22 banks, 7 payday loans, 39 gang operations, 35 smash & grabs).  
> Goal: turn “named POIs” into reproducible, verified map positions — without inventing coordinates.

---

## 1. Two coordinate systems, never mixed

| System | Field | Range | Meaning |
|---|---|---|---|
| Site map | `mapX`, `mapY` | 0–1000 × 0–700 | Normalized position on GTA6 School's stylized Leonida map |
| In-game | `gameX`, `gameY` | free text | Optional in-game coordinates, only when a reliable source exists |

**Rule:** a `mapX/mapY` point is a site-map placement. It is **not** proof of an in-game coordinate. A record can be `located` with only `mapX/mapY`, but it cannot be `verified` without evidence fields.

---

## 2. Status lifecycle

```text
pending ──► draft ──► located ──► verified
   │          │          │            │
   └──────────┴──────────┴────────────┴──► reset
```

### pending
- No reliable placement yet.
- Default for all 103 POIs.

### draft
Requires:
- `mapX`, `mapY`
- `grid` / area

Meaning: “area-level placement only”. The point comes from a region/area anchor, not a confirmed branch. A draft is **never** public-map ready. It exists so the workbench can show coverage without pretending the branch is confirmed.

### located
Requires:
- `mapX`, `mapY`
- `grid` / area
- `landmark`

Meaning: “we know the branch location on the site map, from a named source”. It is **not** public-map ready until verified.

### verified
Requires everything from `located`, plus:
- `entrance`
- `screenshot` (URL or evidence reference)
- `platform`
- `version`
- `verifiedAt`
- optional `verifiedBy`

Meaning: “a person has checked this in-game, on this platform/version, with evidence”. Only these records should render on the public map.

---

## 3. Workflow

1. **Open the workbench** at `/[locale]/coordinates`.
2. **Pick a POI** from the list. Filter by type/status or search.
3. **Place the point** on the stylized map. This fills `mapX/mapY`.
4. **Fill grid/area and landmark.** Mark **Located**. If only an area anchor is known, leave it as **Draft** — do not promote it until the branch landmark is confirmed.
5. **Verify in-game:**
   - drive to the entrance;
   - capture a screenshot;
   - note platform and game version;
   - record the date and verifier;
   - fill entrance and notes.
6. **Mark Verified** only when the validation panel has no missing fields.
7. **Export JSON**.
8. **Review the JSON diff** and commit it to the data repo.
9. **Build the map** with only `status === "verified"` records.
10. Move to the next POI with **Next**.

---

## 4. Required fields

| Field | Required for draft | Required for located | Required for verified | Notes |
|---|---|---|---|---|
| `mapX`, `mapY` | ✅ | ✅ | ✅ | 0–1000 × 0–700 |
| `grid` | ✅ | ✅ | ✅ | e.g. `Vice City / Downtown / G3` |
| `landmark` | — | ✅ | ✅ | e.g. `bank front door, north side` |
| `entrance` | — | — | ✅ | Which side/floor; how to enter |
| `screenshot` | — | — | ✅ | URL or stable evidence reference |
| `platform` | — | — | ✅ | PS5 / PS5 Pro / Xbox Series X/S |
| `version` | — | — | ✅ | e.g. `1.02` |
| `verifiedAt` | — | — | ✅ | ISO date |
| `verifiedBy` | — | — | optional | Editor name/ID |
| `gameX`, `gameY` | — | — | optional | Only with a reliable source |
| `note` | — | optional | optional | Route, parking, escape |
| `source` / `sourceUrl` | recommended | recommended | recommended | Where the placement came from |

---

## 5. Export schema

```json
{
  "schema": "gta6school.robbery-coordinates.v1",
  "generatedAt": "2026-11-24T12:00:00.000Z",
  "count": 103,
  "records": [
    {
      "robberyId": "bank-small-1",
      "status": "verified",
      "mapX": 742,
      "mapY": 388,
      "gameX": "",
      "gameY": "",
      "grid": "Vice City / Key Lento / harbour",
      "landmark": "Fleeca, north side, next to the marina",
      "entrance": "Front door on the north side; parking behind",
      "screenshot": "https://example.com/evidence/…",
      "note": "Fast bike escape via the coast road",
      "platform": "PS5",
      "version": "1.02",
      "verifiedAt": "2026-11-24",
      "verifiedBy": "editor",
      "source": "GTA6Maps marker dataset (CC BY 4.0)",
      "sourceUrl": "https://doi.org/10.5281/zenodo.24412576",
      "updatedAt": "2026-11-24T12:00:00.000Z"
    }
  ]
}
```

---

## 6. QA checklist

Before a record is published:

- [ ] `robberyId` matches an entry in `data/robberies.ts`.
- [ ] `mapX/mapY` sits inside the correct region on the site map.
- [ ] `grid` and `landmark` are specific enough for another editor to find it.
- [ ] `entrance` describes how to get in, not just where it is.
- [ ] Screenshot is accessible and unambiguous.
- [ ] Platform and version are filled.
- [ ] `verifiedAt` is the verification date, not the build date.
- [ ] No duplicate point for the same POI.
- [ ] The public map only reads `status === "verified"`.

**Spot check:** a second editor re-opens 10% of verified records and confirms the entrance and screenshot.

---

## 7. What is deliberately not allowed

- ❌ Clicking the map and immediately marking verified.
- ❌ Guessing a coordinate because a POI “looks like it should be there”.
- ❌ Mixing site-map `mapX/mapY` with in-game coordinates.
- ❌ Publishing `pending` or `located` records on the public map.
- ❌ Reusing one bank's position for another branch.

---

## 8. Publishing stage

1. Export from the workbench.
2. Apply the export through the validation script:
   ```bash
   npm run apply:coordinates -- path/to/export.json
   ```
   It accepts only `status === "verified"` records, requires map point + grid + landmark + entrance + screenshot + version + verified date, and writes `data/verified-robbery-coordinates.json`.
3. `data/coordinates.ts` builds the derived `verifiedRobberyPins` array:
   ```ts
   const verifiedRobberyPins = records.filter(
     (record) => record.status === "verified" && record.mapX != null && record.mapY != null,
   );
   ```
4. `/map` receives `verifiedRobberyPins`; only those pins render in the robbery layer.
5. The 6 prototype robbery pins are hidden by default and can be shown with an explicit toggle.
6. Keep the count visible on `/robberies`: `verified X / 103`.

---

## 9. Next data targets

- 22 banks (14 small + 8 large) — highest value, start here.
- 7 payday loans.
- 39 gang operations — area anchors are filled from MetaForge; exact compounds still need field verification.
- 35 smash & grabs.
- 91 stick-ups — 25 sourced store candidates are indexed on `/stickups`; 66 are still unnamed, so the list remains intentionally partial.

---

## 10. Bank sprint

The workbench has a dedicated bank sprint:

1. Open `/[locale]/coordinates?type=bank`.
2. The list is filtered to 22 banks; the sprint banner shows verified progress.
3. Use **Next bank** to jump to the first unverified bank.
4. Export only the 22 banks as `gta6-bank-coordinates.json` when the sprint is complete.
5. Do not mark a bank verified until the screenshot, platform, version and date are filled.

Suggested order:

1. 14 small banks (safe, repeatable, low loot).
2. 8 large vaults (higher risk, need the security-van loop).
3. Then payday loans, smash & grabs, gang operations.

---

## 11. Seeded bank placements (current state)

The workbench is seeded with 22 bank placements so the sprint is not an empty list:

- **5 bank records** are `located` from named GTA6Maps markers:
  - ShoreFront (Downtown)
  - ShoreFront (Rockridge)
  - Lombank (Ocean Beach)
  - Fleeca (Ocean Beach)
  - Lombank (Tequesta)
- **17 bank records** are `draft` area-level anchors (Key Lento, Watson Bay, Peacock Bay, Bayside, Washington Beach, Ocean Beach, VCIA, Downtown, Ambrosia, Leonard, etc.).
- **7 payday-loan records** are also `draft` area anchors (Hamlet, Vice City, Southside, Little Cuba, Rockridge, La Perle, Kelly County).
- **2 smash & grab records** are `located` (Joyeria Empenos, Vice City Pawn).
- **33 smash & grab records** are `draft` county anchors; exact storefronts are still unknown.
- **39 gang operations** are now `draft` area anchors from MetaForge's operation-area list; exact compounds are still unknown.
- **0 records** are `pending` and **0 records** are `verified`.

The source coordinates are normalized 0–1 in the GTA6Maps dataset and are adapted to the site map's 0–1000 × 0–700 grid. They are **not** in-game coordinates, and the dataset itself marks them as `sourced`, not verified.

Attribution: GTA6Maps, "GTA 6 Leonida Map Marker Dataset," 798 markers, https://gta6maps.io/gta-6/map-data, CC BY 4.0. Archived at https://doi.org/10.5281/zenodo.24412576. Gang-operation areas: MetaForge, https://metaforge.app/gta-6/gta-6-gang-operations-locations.

