uzgeocoder 0.6.0
uzgeocoder: ^0.6.0 copied to clipboard
Offline reverse geocoder for Uzbekistan. Converts latitude and longitude to region (viloyat) and district (tuman) enums, the nearest street and postal code. Pure Dart.
0.6.0 #
- Breaking:
Locationhas a newpostOfficefield (and a requiredpostOfficeconstructor argument): the nearest UzPost office in the point's district, with its 6-digitindex(the likely postal code) anddistance. NewnearestPostOffice(lat, lon). Data: 1,593 UzPost offices; the index matches OSM-tagged postal codes in the first 3 digits ~95% of the time, fully ~40–60%.
0.5.0 #
- All data is decoded per district, only for the districts around the point: district boundaries for the (at most 6) districts whose bounding box contains it, and street data for the district it falls in (plus streets within 200 m of its border). Recently used districts stay cached. Memory 107 MB → 35 MB (AOT, whole process), first lookup 218 ms → 7 ms. Results are unchanged.
- New:
unload,setStreetCacheCapacity,maxStreetDistance,defaultStreetCacheCapacity. - Behavior changes:
locateStreetreturnsnulloutside Uzbekistan;maxDistanceabove 200 m is reduced to 200 m.preload()now decodes and keeps everything (meant for servers; apps no longer need it), andpreloadStreets()keeps every district's street data.
0.4.0 #
- Breaking:
locatereturns the full address: newLocation.street,houseNumber,streetDistanceandaddress;toString()now prints the full address. Apps usinglocatenow include the street data. preload()also loads the street data.
0.3.0 #
- Nearest street and house number from embedded OpenStreetMap data:
locateStreet,preloadStreets. Data © OpenStreetMap contributors, ODbL 1.0; not included in builds that never calllocateStreet. - Street names in Uzbek (Latin and Cyrillic), Russian and English; nearest street within 100 m (configurable), house number within 50 m. OSM data as of 2026-10-07.
0.2.0 #
- Names in Uzbek Cyrillic, Russian and English:
nameUzCyrl,nameRu,nameEnandnameIn(Lang)onRegionandDistrict. - Optional
langargument onlocate;Location.regionName/districtNamereturn names in that language. Langenum withLang.fromCode('ru-RU')for parsing locale tags.
0.1.0 #
- Initial release:
locate,districtAt,regionAtwithRegion(14) andDistrict(206) enums.