Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 1.2 KB

README.md

File metadata and controls

51 lines (32 loc) · 1.2 KB

Tile38

This package contains convenience functions which map responses from tile38 to objects.

This package maps the z coordinate to the key timestamp.

Peer Dependencies

Installation

If available in Hex, the package can be installed by adding tile38_client to your list of dependencies in mix.exs:

def deps do
  [
    {:ex_tile38, ">= 0.0.0"},
    {:redix, ">= 0.0.0"}
  ]
end

Usage

Start link to Redix

Notice that we give this connection the name tile38.

{:ok, _} = Redix.start_link("redis://localhost:9851/", name: :tile38)

Changelog

See Changelog for details on breaking changes.

Upgrading to 0.5.0:

t38 method, in addition to accepting a command string, can now accept a list of commands. This change allows for setting fields with string values containing spaces.

t38(["SET", "player", "123", "FIELD", "address", "123 Road St","POINT", -100.0, 99.9])

Upgrading to 0.4.0:

Any calls to f38 should expect nil instead of [] as a response if there are no values returned.

See documentation on usage at https://hexdocs.pm/ex_tile38.