From 5349659679de88461f67ad2f7c48d546a15cf200 Mon Sep 17 00:00:00 2001 From: Trevor Gerhardt Date: Tue, 11 Feb 2025 17:57:40 +0100 Subject: [PATCH] Add note about the UI parsing output The output created in `FreeFormPointSet#write()` is parsed in the UI. They should be updated simultaneously. --- src/main/java/com/conveyal/r5/analyst/FreeFormPointSet.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/conveyal/r5/analyst/FreeFormPointSet.java b/src/main/java/com/conveyal/r5/analyst/FreeFormPointSet.java index d0deaed13..2eade6f30 100644 --- a/src/main/java/com/conveyal/r5/analyst/FreeFormPointSet.java +++ b/src/main/java/com/conveyal/r5/analyst/FreeFormPointSet.java @@ -164,6 +164,8 @@ public double getLon(int i) { * Note that this does not save any opportunity magnitudes or densities. We do not use those yet. * Note also that if we ever intend to use these directly in the UI we should switch to a * fixed-width little-endian representation or JSON. + * Note: Conveyal's UI parses binary files produced with this format in + * `lib/opportunity-datasets/parse-freeform.worker.ts` */ public void write (OutputStream outputStream) throws IOException { DataOutputStream out = new DataOutputStream(outputStream);