module
JosieHealth::Utils::TimezoneCity
Defined in:
timezone_city.crConstant Summary
-
TZ_MAP_DATA =
{{ read_file("/home/josie/development/personal/josiedot/health/josie-health-utils/src/../data/tz_map.json") }} -
Embed timezone data at compile time
Class Method Summary
-
.data : Array(Entry)
Load timezone data (lazy loaded from embedded data, cached)
-
.find(city : String) : String | Nil
Find exact timezone for a city (returns first match)
-
.lookup(query : String, limit : Int32 = 5) : Array(Match)
Find timezone matches for a query string Returns top 5 matches sorted by relevance (population + match type)
-
.reload!
Reload data (useful for testing)
Class Method Detail
Find timezone matches for a query string Returns top 5 matches sorted by relevance (population + match type)