Open
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)