mix tz_world.update (TzWorld v2.3.0)

Copy Markdown View Source

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_dir if it does not yet exist. Without --force a missing :data_dir is reported as an error so a misconfigured :data_dir is loud rather than silently materialised. Pass --force on the first install when you have set a custom :data_dir that is not part of the build artifacts.
  • --trace (-t) emits debug-level progress logs (current memory usage, download / extract / parse phases).

Summary

Functions

run(args)

Callback implementation for Mix.Task.run/1.

update(include_oceans?, force_update?, trace?)