suggestion method

MunicipalityModel suggestion (
  1. String municipality
)

Method that returns the best match of the given municipality with the cuban municipalities. The best match is calculated using the Damerau-Levenshtein distance.

Implementation

MunicipalityModel suggestion(String municipality) {
  return _repository.getSuggestion(municipality);
}