Lines Matching refs:city
110 * Returns the <code>PostalCodeEntry</code> for the actual city
113 * city name associated with it, as well as several other names
118 * the official city for the 90064 postal code. Rancho Park, CA
122 * @return the <code>PostalCodeEntry</code> for the actual city
146 * @param city the city to match.
147 * @param postalCode the postal code within which to match the city.
148 * @return the closest matches to the specified city within the specified
152 public List match(String city, int postalCode) {
153 return match(city, postalCode, new MatchOptions(true, true, false, PostalCodeConstants.CITY_ACCEPTABLE));
157 * Returns a list of the closest matches to the specified city
165 * @param city the city to match.
166 * @param postalCode the postal code within which to match the city.
168 * @return a list of the closest matches to the specified city within
172 public List match(String city, int postalCode, MatchOptions options) {
176 StringBuffer sbCity = new StringBuffer(city.length());
178 for (int j=0; j<city.length(); ++j) {
179 char c = city.charAt(j);
189 city = sbCity.toString();
201 min = Math.min(min, StringUtils.getLevenshteinDistance(entry.getCity(), city));
207 if (min == StringUtils.getLevenshteinDistance(entry.getCity(), city)) {