def give_coordinates(data):
	"""   
		Get ground-truth coordinates (X,Y,Z, room label) where the measurement was 
		taken, given the JSOn structure as an input.
	"""

	message = {}
	message['true_coordinate_x'] = data['raw_measurement'][1]['receiver_location']['coordinate_x']
	message['true_coordinate_y'] = data['raw_measurement'][1]['receiver_location']['coordinate_y']
	try:
		message['true_coordinate_z'] = data['raw_measurement'][1]['receiver_location']['coordinate_z']
	except:
		pass
	try:
		message['true_room'] = data['raw_measurement'][1]['receiver_location']['room_label']
	except:
		pass

	return message