TzWorld.Backend.DetsWithIndexCache (TzWorld v2.5.0)

Copy Markdown View Source
This module is deprecated. Use TzWorld.Backend.SpatialIndex instead. This backend will be removed in the next release..

Resolves a timezone from a coordinate using a DETS file of timezone shapes together with an in-memory index of their bounding boxes.

Deprecated

This backend is deprecated and will be removed in the next release. Use TzWorld.Backend.SpatialIndex instead.

SpatialIndex reads the .tzw1 data file directly, so it does not need the separate DETS cache this backend maintains -- a file an order of magnitude larger than the data itself. It also answers lookups from :persistent_term rather than through a GenServer mailbox, so it is faster and has no single-process bottleneck.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.