public void getLocation ( String key , LocationCallback callback ) { DatabaseReference keyRef = this . getDatabaseRefForKey ( key ) ; LocationValueEventListener valueListener = new LocationValueEventListener ( callback ) ; keyRef . addListenerForSingleValueEvent ( valueListener ) ; }
Gets the current location for a key and calls the callback with the current value .