kataho_code 1.0.0
kataho_code: ^1.0.0 copied to clipboard
Convert between coordinates, Nepal Plus Codes, Kataho Codes, and KIDs.
0.4.0 #
Callers can now ask for a specific output representation instead of reading it off the result.
- Added the
KatahoCodeTypeenum:latLng,plusCode,katahoCode,katahoCodeLatin, andkid. - Added
KatahoCode.valueFor(type), returning that representation as aString. - Added
GeocodeRepository.convert(input, output), going straight from any input form to any output form. KatahoCodeBuilderacceptsoutputwith a newoutputBuilder, which receives the requested value alongside the fullKatahoCode. The existingbuilderis unchanged, so current call sites keep working; supply exactly one of the two.
0.3.0 #
Added the KID — a 12-digit, separator-free form of a Kataho Code. Coordinates, Plus Codes, Kataho Codes, and KIDs now all convert to each other.
- Added the
geocode_word_kidsdataset, mapping each 2-character Plus Code word segment to a 3-digit group. A KID is the region number (2), both word halves (3 + 3), and the house number (4):7MW4JQF6+62R->192451960075. - Added
katahoCodeForKidandkidForKatahoCode, plus thewordKidForCodeandwordKidForKiddataset lookups. GeocodeRepository.resolvenow also detects a KID, so any of the four representations resolves through the same call.KatahoCodecarrieskidalongsideplusCode,latitude, andlongitude.KatahoCodeBuilderaccepts akidargument.- Added
tool/encrypt_word_kids.dart, which encrypts the KID dataset with the existing key instead of rotating it the wayencrypt_assets.dartwould.
0.2.0 #
Conversion is now bidirectional: coordinates, Plus Codes, and Kataho Codes all convert to each other.
- Added
plusCodeToArea, decoding a full Plus Code back to its bounding box and centre point — the inverse ofplusCodeFromLatLng. - Added
GeocodeRepository.resolve, which detects whether the input is a Plus Code, a Kataho Code, or a"lat,lng"pair. - Added
katahoCodeForDisplayandkatahoCodeForLatLng, plus thenumberForName/wordForName/suffixForNamereverse dataset lookups. Matching accepts Devanagari or Western digits, unpadded house numbers, and dataset hints. KatahoCodenow carrieslatitude,longitude, andformattedPlusCode.KatahoCodeBuilderacceptskatahoCodeand a free-forminputalongsideplusCodeand coordinates.
Breaking changes:
KatahoCodeCubit.resolvenow routes throughGeocodeRepository.resolverather thankatahoCodeFor, so a customGeocodeRepositorymust overrideresolveto intercept lookups.KatahoCodeUnavailable.plusCodeis renamed toinput, since it may now hold any of the three input forms.
0.1.1 #
- Added package metadata, API documentation, and a Flutter example.
0.1.0 #
- Initial public release.