3.2 Backend
Backend: A postgres database with appropriate tables to receive real-time device data along with static bus stop and route data. A simple query should allow for the display of the required information to to be displayed on a static frontend page.
3.4 Endpoint
An API endpoint that receives the CLIENT_LOCATION and returns top-n DEVICE_LOCATIONs closest to it at TIME t via a simple postgres spatial query. At the moment, we use AWS Lambda functions connected to an API Gateway to achieve this.