Skip to content
Snippets Groups Projects
Commit 68a4bfd9 authored by Sara Savanovic Djordjevic's avatar Sara Savanovic Djordjevic
Browse files

fix: add body of water to json response

parent 50f4483d
No related branches found
No related tags found
1 merge request!2App2
......@@ -92,7 +92,7 @@ class Data {
}
class Corner {
double cornerID;
int cornerID;
double latitude;
double longitude;
......@@ -105,8 +105,8 @@ class Corner {
factory Corner.fromJson(Map<String, dynamic> json) {
return Corner(
cornerID: json['CornerID'],
latitude: json['CornerLatitude'],
longitude: json['CornerLongitude'],
latitude: json['Latitude'],
longitude: json['Longitude'],
);
}
}
\ No newline at end of file
......@@ -15,7 +15,7 @@ class SatLayer extends StatelessWidget {
Widget build(BuildContext context) {
return FlutterMap(
options: MapOptions(
center: LatLng(31.0274,89.0065), // NB: random location in Tibet for testing purposes
center: LatLng(60.7666, 10.8471),
zoom: 9.0,
),
children: [
......
No preview for this file type
......@@ -75,7 +75,8 @@ def get_all_markers(self, cursor, valid: bool):
'Active': bool(row[10])
},
'Data': [data_object],
'Corners': [corner_object]
'Corners': [corner_object],
'BodyOfWater' : row[14]
}
# Convert dictionary values to list of measurements
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment