WhiteflagProtocol / whiteflag-schoolpilot

Pilot for locating schools using the Whiteflag protocol
1 stars 2 forks source link

[Issue] show route uses wrong reference location / wrong reference location made when adding infrastructure? #23

Open YannickSeyeux opened 1 month ago

YannickSeyeux commented 1 month ago

When adding a new infrastructure with coordinates, it will show the infrastructure on the map at the correct location.

However, when I click "Show route", it displays a route to "Undefined | Agentur für Webdesign und App, Bogenstraße 8, 20144 Hamburg, Germany". This seems to happen with recently created infrastructures.

Steps to reproduce

Open the application

  1. Click the + button
  2. Add a new infrastructure
  3. Click add

After creating a infrastructure, or if you want to check a infrastructure location

  1. Click the list button
  2. Search for your recently made school
  3. Click "Show route"

Expected outcome: a route is established from my current location to the coordinates listed in the new infrastructure. Actual outcome: a route is established to "Undefined | Agentur für Webdesign und App, Bogenstraße 8, 20144 Hamburg, Germany"

Screenshot 2024-05-29 135919 Screenshot 2024-05-29 135807 Screenshot 2024-05-29 134012
YannickSeyeux commented 3 weeks ago

Tested on local machine. Is resolved. Next step: Test when online.