Skip to content

Location extension

Adrian Gortzak edited this page Jun 3, 2017 · 1 revision

Adding a supported location with coordinates from start removes the need to add it in the application, if the data format does not provide it and makes it visible directly when data is received.

locationList.add(new Location("kthlab", new Coordinate(59.405107, 17.949597)));
locationList.add(new Location("kthlab2", new Coordinate(59.405390, 17.949519)));

Figure 3, locations

To add a new location, a location object needs to be added in the locationList in the insertStaticLocation function which is located in the SensorDatDbHelper class. The location object contains the name of the location as well as the coordinates connected to it.

Clone this wiki locally