PairIt2024 / Kiosk

0 stars 0 forks source link

pi/A17 - QR code implementation #49

Closed owen9hall closed 1 week ago

owen9hall commented 2 weeks ago

Added QR code feature that displays a QR code that, when scanned, will direct the user to Google Maps and display the directions from their location to the desired building location.

QR code is created in the backend server with qrCode.js. In the client, a GET request is sent with the latitude longitude of the destination from the QRCode.js component, and the QR code display is returned. This component is implemented through Map.js, where the latitude longitude are stored, and when method fetchAndPlotRoute is called, the QR code is then displayed at the bottom of the page (QR code display location is subject to change). Finally, server.js is slightly adjusted to enable the handling of requests to qrCode.js in the backend.