Start the API.
npm install
npm run serve
I took the following steps to improve the user experience and make the tool more efficient:
- Prefilling old city names into the typeahead for matching new cities
- Switching the columns for new geographical and old historical cities to make sure that all old cities get matched to a new city and no old city will be forgotten
- Added two new API endpoints to make the new structure work and make use of the Levenshtein distance to make suggestions if a city is misspelled
Changes to the API:
/v2/historical Get a list of old historical cities
/v2/cities?q=<query> Get a list of new geographical city data matching a query (autocomplete and best match)