All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog
- 'KNOWN_LANGUAGES_FOR_COUNTRY' variable containing languages geoconvert can process to find countries.
- "Island" no longer matches Iceland when language is not set.
- "Pacific Island" no longer matches Iceland.
- Detection for "moldavie" as "MD" in French.
- "Southern Africa" no longer matches South Africa.
- Use French region names when finding French subdivisions (the dept of the regional prefecture is used if a region name matched)
- Support for Python 3.12
- Detection for DE and FR subdivisions using NUTS codes
- escape ’ character as '
- Do not mistake "océan indien" as IN
- Support for Saint-Martin (France) postcodes
- remove flake8
- use ruff
- Support for Python 3.10 and 3.11
- Detection for "Irak" as IQ in French (not just "Iraq" for this language)
- Support for Python 3.6 and 3.7
- All tests pass, no warning
- Detection for "Congo Democratic Republic" as CG (without "of" in the end)
- Do not mistake "Haute-Vienne" French department with the Austrian capital name "Vienne" (in French)
- Do not mistake "Prince Edward Island" (Canadian province) and "Rhode Island" (US state) with Iceland (which spells Island in German).
- All libraries used for the dev/test environment
- Do not mistake para with the Brazilian state Pará
- Kyiv is a known capital name for French and English languages
- Detection for "palestinian territory" as "PS" in English
- Detection for "turkiye" as "TR" in English + French
- Detection for "birmanie" as "MM" in French
- Detection for "Bosnia & Herzegovina" as "BA" in English
- No longer find "IS" for countries with "island" in their names.
## [4.5.1] - 2022-03-11
- Detection of german departments with postcodes
## [4.5.0] - 2021-10-11
- test organisation : single file split into multiple files in folders
- US Minor Outlying Islands (UM) is considered as a country and not a US state
- Saint Barthélémy (FR-977) is considered a French departement on its own and not Guadeloupe
- Changelog !
- Detection for AG written "Antigue et Barbude" in French
- Detection of any Brazilian state code from the post code, state name or if the state code is present.
- Detection of any German land code from the state name, state capital or if the state code is present.
address_to_country_and_subdivision_codes
can return iso format
## [4.4.1] - 2021-09-23
- minor refacto in special_countries and tests
## [4.4.0] - 2021-09-22
- Make sure we never mistake Guinea (GN) and Papua New Guinea (PG)
## [4.3.0] - 2021-08-09
- Make sure we never mistake Jersey (JE) and New Jersey (US-NJ)
- Make sure we never mistake Sudan (SD) and South Sudan (SS)
## [4.1.0] - 2021-01-17
- Detection of country names in Spanish
- Detection of any American state code from the post code, state name or if the state code is present.
- Detection of any Canadian province or territory code from the post code, state name or if the state code is present.
- Wrapper functions to allow finding the subdivision code (department for France, state for US, ...) and/or the country code from a text input.
- Update README (show the new functions usage in an extensive fashion - more details on how to run the tests and prepare your local dev env - more details for the dev when adding a new language or subdivisions to a new country)
- Refactorization of the current code (mainly for France departments and regions) to make the functions more uniform.
- Move data from a single file to multiple files in a specific folder.
- Update CI (test the README, style check)
- Make base functions as language or country-agnostic as possible
- Anything related to python 2