Downloads and installs the latest Timezone GeoJSON data.
Arguments
--include-oceans(-o) will include the geojson for the oceans in the downloaded data. The default is to download data without ocean coverage.--force(-f) does two things:- Forces an update even if the currently installed data is already at the latest release. Useful when switching between including and excluding ocean coverage.
- Creates the directory configured under
:data_dirif it does not yet exist. Without--forcea missing:data_diris reported as an error so a misconfigured:data_diris loud rather than silently materialised. Pass--forceon the first install when you have set a custom:data_dirthat is not part of the build artifacts.
--backends(-b) is a comma separated list of the backends the installed data must serve. The default isspatial_index.The
.tzw1data file is the source of truth and is always written. Namingdetsadditionally buildstimezones-geodata.dets, the on-disk cacheTzWorld.Backend.DetsWithIndexCachereads and thatTzWorld.Backend.EtsWithIndexCacheloads into ETS at startup, so namingetsbuilds it too. That file is an order of magnitude larger than the.tzw1, andTzWorld.Backend.SpatialIndexreads the.tzw1directly and never needs it, so the default does not build it.Accepted names are
spatial_index,etsanddets.etsanddetsare deprecated and will be removed in the next release.mix tz_world.update --backends dets mix tz_world.update --backends spatial_index,dets--trace(-t) emits debug-level progress logs (current memory usage, download / extract / parse phases).
Summary
Functions
Callback implementation for Mix.Task.run/1.
Functions
Callback implementation for Mix.Task.run/1.