package com.github.polapi.formatter.streets;

/**
 * The idea is to match given  street name with street names provided in database of all existing streets in Poland.
 * So that you can:
 *  - Check and fix typos in user provided names.
 *  - Normalize street names (to format both "Tadeusza Kościuszki" and "T.Kościuszki" to "Kościuszki").
 *  - Use proper cases (to format "MIESZKA I" to "Mieszka I" and "ŻWIRKI I WIGURY" to "Żwirki i Wigury").
 */
public class StreetNameMatcher {

	private StreetNameMatcherService streetNameMatcherService = new StreetNameMatcherService();

	public StreetMatchingResult matchStreet(String streetName) {
		return streetNameMatcherService.findClosestMatch(streetName);
	}
}
