Skip to content

Dynamic POI tags

rarrouba edited this page Jul 27, 2017 · 1 revision

Description

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.

How we do it

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.

What does it mean ?

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.

Clone this wiki locally