title: Appcelerator Titanium - Reverse Geocoder and Variable Scope Issues
body: <p>I am trying to use the titanium reverseGeocoder but I am having a strange issue which I think is a "scope" issue. I can't quite understand why the last log call I make returns null values when I have defined the variables in that scope.</p>
  
  <pre><code>var win = Titanium.UI.currentWindow;
  Ti.include('includes/db.js');
  
  var city = null;
  var country = null;
  
  Titanium.Geolocation.reverseGeocoder(   Titanium.UI.currentWindow.latitude, 
                                          Titanium.UI.currentWindow.longitude, 
                                          function(evt) {
  
  var places = evt.places;
  
  if (places &amp;&amp; places.length) {
  city    = places[0].city;
  country = places[0].country;    
  }
  Ti.API.log(city + ', ' + country); // &lt;&lt;&lt; RETURNS CORRECT VALUES
  
  });
  
  Ti.API.log(city + ', ' + country); // &lt;&lt;&lt; RETURNS NULL VALUES
  </code></pre>