mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-19 09:42:21 +00:00
Keep more private text from place suggestions, and name houses by their street
- Not sent any more: "john @Gmail.com" (a capital after "@"), "030 12345"
and "Alice 12345-6789" (read as a house number and postcode),
"access_token=abcdef", a key in quotes or brackets, and letter codes
after a code label ("OTP: ABCDEF", "verification code ABCDEF").
- Sent now: "10 Downing Street SW1A2AA, London" (the comma hid the
postcode). "Pin Oak" and "Gate Code Lane" stay places.
- A house Photon returns without a name is named by its number and street,
so 10 and 12 Downing Street are two suggestions, not one "London".
- The same text asked twice at once is sent once.
- The village pack's build finds twins near the poles and across 180°;
the shipped tiles are unchanged.
Co-authored-by: Manjunath Paparaju <[email protected]>
This commit is contained in:
1 parent
2b5900ae77
commit
b7a9fa1c21
4 files changed
+134
-13
No files matched your search
@@ -88,3 +88,18 @@ test('one place listed twice nearby keeps its larger listing', () => {
|
||||
['Q1', 'Q3', 'Q4', 'Q5'],
|
||||
);
|
||||
});
|
||||
|
||||
test('twins are found where longitude cells narrow, and across 180°', () => {
|
||||
const rows = [
|
||||
// 1.98 km apart at 70° N, two longitude cells apart.
|
||||
['Nord', 70, 10.049, 9000, 'NO', 'Q1'],
|
||||
['Nord', 70, 10.101, 2000, 'NO', 'Q2'],
|
||||
// Either side of the antimeridian, under 2 km apart.
|
||||
['Kai', -16.5, 179.995, 5000, 'FJ', 'Q3'],
|
||||
['Kai', -16.5, -179.995, 1000, 'FJ', 'Q4'],
|
||||
];
|
||||
assert.deepEqual(
|
||||
withoutNearTwins(rows).map((row) => row[5]),
|
||||
['Q1', 'Q3'],
|
||||
);
|
||||
});
|
||||
Reference in new issue
Block a user