-
Notifications
You must be signed in to change notification settings - Fork 0
Dynamic POI tags
To make the application as modular/dynamic as possible, we used a ListView
to show all possible POI tags in the route settings. This ListView is built up based on the poiTags
property of the GuiController.
At startup of the app the GuiController (a singleton) is initiated. This GuiController is used to handle the switching between Activities and was built by previous developers. We modified this class to have a property called poiTags (a list of strings) and we modified the constructor to load in the poiTags. When the constructor is called, a request is initiated to our server (url: http://95.85.5.226/poi/types/), the response of this request is a list of possible POI tags. When the RouteSettingsFragment is built up, this list is then used to show all available POI tags.
If the people managing the server add new possible tags, these tags will be available in the app, without having to update the app itself.