Skip to content

Call floor plans#91

Open
sahusw wants to merge 3 commits intomaizebus-2.1from
call-floor-plans
Open

Call floor plans#91
sahusw wants to merge 3 commits intomaizebus-2.1from
call-floor-plans

Conversation

@sahusw
Copy link
Copy Markdown
Contributor

@sahusw sahusw commented Apr 14, 2026

Description:
Added floorplan_api.dart and building_floors.dart to handle the floor plan data from the backend (both are modeled from bluebus_api.dart and bus_route_line.dart), then modified _loadAllData() in map_screen.dart to call fetchFloorPlans() defined in floorplan_api.dart. (Related Issues?) Nothing is currently done with the floor plan data in frontend- only a call is made. Additionally, the way we get floor plan data for specific buildings and floors needs to be modified because the code is currently written only for the first floor of the Duderstadt, which is the only floor plan data we have at the moment.

Changes made: Flutter

Testing Done: iOS Simulator (files added don't prevent the app interface from breaking, but was not able to test if fetchFloorPlans() really works for any building or floor)

sahusw added 3 commits April 14, 2026 10:58
made a new file, floorplan_api.dart, to call floor plan data from the backend. it's modeled similarly to bluebus_api.dart but very bare bones, and need to modify how we call specific building and floor data
made a new file, building_floors.dart, which keeps track of the floor plan data in 3 classes: BuildingFloors, Node, and Edge. it's modeled similarly to bus_route_line.dart
…plan variable

imported floorplan_api.dart in order to make a call to fetchFloorPlans() in _loadAllData(). nothing is done with the plans variable at the moment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant