Subversion Repositories SmartDukaan

Rev

Rev 27499 | Rev 27501 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27499 Rev 27500
Line 128... Line 128...
128
		JSONArray coords = d.getJSONArray("coordinates");
128
		JSONArray coords = d.getJSONArray("coordinates");
129
 
129
 
130
		double lat2 = coords.getDouble(1);
130
		double lat2 = coords.getDouble(1);
131
		double lng2 = coords.getDouble(0);
131
		double lng2 = coords.getDouble(0);
132
		double dist = distance(lat1, lng1, lat2, lng2, "m");
132
		double dist = distance(lat1, lng1, lat2, lng2, "m");
133
		LOGGER.info("employeeAttendance" + response.body().string());
133
		LOGGER.info("jsonObj" + jsonObj);
134
		JSONObject deviceStatus = jsonObj.getJSONObject("device_status");
134
		JSONObject deviceStatus = jsonObj.getJSONObject("device_status");
135
		JSONObject deviceData = deviceStatus.getJSONObject("data");
135
		JSONObject deviceData = deviceStatus.getJSONObject("data");
136
		String status = deviceData.getString("value");
136
		String status = deviceData.getString("value");
137
 
137
 
138
		EmployeeAttendanceModel em = new EmployeeAttendanceModel();
138
		EmployeeAttendanceModel em = new EmployeeAttendanceModel();