getAddressSimple method

String getAddressSimple()

Implementation

String getAddressSimple()  {
  AppConfig.logger.d("Getting address simple from address: ${toJSON().toString()}");

  String address = "";

  try {
    String locality = city;
    String administrativeArea = street;
    String country = this.country;

    locality.isNotEmpty ?
    address = "$locality, $country"
        : address = "$administrativeArea, $country" ;
  } catch (e, st) {
    NeomErrorLogger.recordError(e, st, module: 'neom_core', operation: 'getAddressSimple');
  }

  return address;
}