| AeroDoc demo sets the latitude and longitude, but not the location. It would be good if we could update the app to set the locality to that coordinates.
Geocoder geocoder = new Geocoder(this, Locale.getDefault()); |
try { |
List<Address> addresses = geocoder.getFromLocation(location.getLatitude(), location.getLongitude(), 1); |
saleAgent.setLocation(addresses.get(0).getLocality()); |
} catch (IOException e) { |
|
}
|
|