taiwan_zip 0.4.0
taiwan_zip: ^0.4.0 copied to clipboard
A helper package to get three-digits zip codes by districts in Taiwan.
0.4.0 #
Changes
- Fix the problem when zip code is not unique,
TaiwanZip.toDistrictonly returns the first found district.- The structure of the mapping
Mapis reversed: keys become values and values are keys now. That is, districts are used as keys and zip codes are the values. - When the zip code maps to multiple districts, they are concatenated with
/in-between.
- The structure of the mapping
0.3.0 #
Changes
- 東沙群島 and 南沙群島 were mapped to 高雄市 and 釣魚臺 was mapped to 宜蘭縣. The number of cities is now 24.
- All the functions can be used without an instance, i.e., they are all static functions now.
Enhancements
- More informative exceptions
- Better documentation
- Updated README.md
0.2.0 #
New
- Getter
zipCodesreturns all the zip codes. - Getter
citiesreturns all the cities.
Changes
getDistrictsnow returns district names without city. Previous behavior equivalent is settingwithCity = true.
Enhancements
- Removed unnecessary dependencies.
0.1.0 #
- Initial development release.