Code example for Marker

Methods: getPosition, setTitle

0
            	if(isBetterLocation(location, currentBest)) 
            	{ 
            		currentBest = location; 
            	} 
            	double accuracy = 0.0005; 
            	if(currentBest.getLatitude() <= exLocation.getPosition().latitude + accuracy && currentBest.getLatitude() >= exLocation.getPosition().latitude - accuracy && 
            			currentBest.getLongitude() <= exLocation.getPosition().longitude + accuracy && currentBest.getLongitude() >= exLocation.getPosition().longitude - accuracy) 
            	{ 
            		exLocation.setTitle("Ready"); 
            	} 
            	else 
            	{ 
            		exLocation.setTitle("Away"); 
            	} 
                } 
 
    		@Override 
    		public void onProviderDisabled(String provider) { 
    			// TODO Auto-generated method stub 
    			 
    		}