UCL / kapta-mobile

Progressive Web App enabling users to generate maps from WhatsApp chats
Apache License 2.0
0 stars 1 forks source link

Improve the parser algorithm (for recording water quality with Ph strips use). #67

Closed fmousss closed 2 weeks ago

fmousss commented 2 weeks ago

image image image image

There is an issue with the parser algorithm: it omits some locations and put two descriptions in one location instead. I've had a quick look at it seems to be related with the date/time. When the messages are sent the same minute, the second location is ignored and the second description is attached to the first location.

See both screenshots: The second is with the dates modified manually. The second is the original.

image image

I'm sending here a section of the chat for you to test out @tcouch

@Amanda Ho-Lyn 29/08/2024, 11:58 - Fabien: Test Galaxy 03 29/08/2024, 11:58 - Fabien: 17 Lavington St, London SE1 0JA, Royaume-Uni 17 Lavington St, London SE1 0JA, Royaume-Uni location: https://maps.google.com/?q=51.50505002688268,-0.09933192282915115 29/08/2024, 11:58 - Fabien: 29/08/2024, 11:59 - Fabien: Ph 10 29/08/2024, 11:59 - Fabien: 26 Peabody Cl, Pimlico, London SW1V 4BA, Royaume-Uni 26 Peabody Cl, Pimlico, London SW1V 4BA, Royaume-Uni location: https://maps.google.com/?q=51.485615484021025,-0.14531370252370834 29/08/2024, 11:59 - Fabien: 29/08/2024, 11:59 - Fabien: Ph 4 29/08/2024, 12:00 - Fabien: 45D Shooters Hill Rd, London SE3 7HS, Royaume-Uni 45D Shooters Hill Rd, London SE3 7HS, Royaume-Uni location: https://maps.google.com/?q=51.47384419198773,0.017369315028190613 29/08/2024, 12:00 - Fabien: 29/08/2024, 12:00 - Fabien: Ph 2 29/08/2024, 12:01 - Fabien: 44 Relf Rd, London SE15 4JT, Royaume-Uni 44 Relf Rd, London SE15 4JT, Royaume-Uni location: https://maps.google.com/?q=51.46516004545537,-0.06819482892751694 29/08/2024, 12:02 - Fabien: 29/08/2024, 12:02 - Fabien: Ph 6 29/08/2024, 12:36 - jerome lewis excites: Fantastic. Really clear and looks really great. pH2 is dangerously acidic! Did you take that reading in tap water? Also, what gave a pH 10 ? 29/08/2024, 12:36 - Your security code with Fabien changed. Tap to learn more. 29/08/2024, 12:41 - Fabien: 74 Oglander Rd, London SE15 4EN, Royaume-Uni 74 Oglander Rd, London SE15 4EN, Royaume-Uni location: https://maps.google.com/?q=51.46441895516122,-0.07487386465072632 29/08/2024, 12:53 - Fabien: Test with Samsung A15 29/08/2024, 12:53 - Fabien: Unnamed Road, London SE15 3UA, Royaume-Uni Unnamed Road, London SE15 3UA, Royaume-Uni location: https://maps.google.com/?q=51.4567320445562,-0.06178166717290878 29/08/2024, 12:53 - Fabien: 29/08/2024, 12:53 - Fabien: Ph 13 29/08/2024, 12:53 - Fabien: 22 Sandy Ln N, Wallington SM6 8JX, Royaume-Uni 22 Sandy Ln N, Wallington SM6 8JX, Royaume-Uni location: https://maps.google.com/?q=51.36255429724513,-0.1340946927666664 29/08/2024, 12:54 - Fabien: 29/08/2024, 12:54 - Fabien: Ph 9 29/08/2024, 12:54 - jerome lewis excites: What gave that reading? 29/08/2024, 12:54 - jerome lewis excites: It’s really great indicator paper! 29/08/2024, 12:54 - Fabien: 249 S Eden Park Rd, Beckenham BR3 3JN, Royaume-Uni 249 S Eden Park Rd, Beckenham BR3 3JN, Royaume-Uni location: https://maps.google.com/?q=51.394816939618366,-0.024577081203460693 29/08/2024, 12:54 - Fabien: 29/08/2024, 12:55 - Fabien: Ph 3 29/08/2024, 12:59 - Fabien: 29/08/2024, 12:59 - Fabien:

Discussion WhatsApp avec ‎+44 7492 828021 et +44 7905 164949.zip