old_contents: #this simple class implements the quadrant research
  
  import Quadrant as quadrant
  import QuadrantTextFileLoader as loader
  
  class SearchQuadrant:
  	inputFile	=	0
  	quadrantsList	=	0
  	def __init__(self,aList):	#list of quadrants
  		self.quadrantsList =	aList
  
  	#returns a quadrant for a geographic coordinate
  	def searchQuadrant(self,point):
  		latitude	=	float(point[0])
  		longitude	=	float(point[1])
  		myquadrant	=	-1	#if returns -1 there is no quadrant available for that coordinate
  		for item in self.quadrantsList:
  			check	=	item.inside(point)
  			if check==True:
  				return item
  		return -1
  
  	#returns the object with a quadrantID
  	def getQuadrantInstance(self,qID):
  		for item in self.quadrantsList:
  			if item.getID()==int(qID):
  				return item
  		return -1
  		
  	def getQuadrantsForAnArea(self,NW,NE,SW,SE):
  		fakeQuadrant	=	Quadrant(-1,NW,NE,SW,SE)
  		resultList		=	list()
  		for item in self.quadrantsList:
  			coord	=	item.getBoundaries()
  			aNW		=	coord['NW']
  			aNE		=	coord['NE']
  			aSW		=	coord['SW']
  			aSE		=	coord['SE']
  			if(fakeQuadrant.inside(aNW) or fakeQuadrant.inside(aNE) or fakeQuadrant.inside(aSW) or fakeQuadrant.inside(aSE)):
  				returnList.append(item)
  		return returnList
  
new_contents: #this simple class implements the quadrant research
  
  import Quadrant as quadrant
  import QuadrantTextFileLoader as loader
  
  class SearchQuadrant:
  	inputFile	=	0
  	quadrantsList	=	0
  	def __init__(self,aList):	#list of quadrants
  		self.quadrantsList =	aList
  
  	#returns a quadrant for a geographic coordinate
  	def searchQuadrant(self,point):
  		latitude	=	float(point[0])
  		longitude	=	float(point[1])
  		myquadrant	=	-1	#if returns -1 there is no quadrant available for that coordinate
  		for item in self.quadrantsList:
  			check	=	item.inside(point)
  			if check==True:
  				return item
  		return -1
  
  	#returns the object with a quadrantID
  	def getQuadrantInstance(self,qID):
  		for item in self.quadrantsList:
  			if item.getID()==int(qID):
  				return item
  		return -1
  		
  	def getQuadrantsForAnArea(self,NW,NE,SW,SE):
  		fakeQuadrant	=	quadrant.Quadrant(-1,NW,NE,SW,SE)
  		resultList		=	list()
  		for item in self.quadrantsList:
  			coord	=	item.getBoundaries()
  			aNW		=	coord['NW']
  			aNE		=	coord['NE']
  			aSW		=	coord['SW']
  			aSE		=	coord['SE']
  			if(fakeQuadrant.inside(aNW) or fakeQuadrant.inside(aNE) or fakeQuadrant.inside(aSW) or fakeQuadrant.inside(aSE)):
  				resultList.append(item)
  		return resultList
  
subject: fix su nome variabili