Menu CommandsClientsDocumentationDocsGithubLicense
Tile38

Tile38 is an open source (MIT licensed), in-memory geolocation data store, spatial index, and realtime geofence. It supports a variety of object types including lat/lon points, bounding boxes, XYZ tiles, Geohashes, and GeoJSON.

Features


Nearby
Nearby
Within
Within
Intersects
Intersects

Geofence
Static Geofence
Roaming Geofence
Roaming Geofence

Getting Started

The easiest way to get Tile38 is to use one of the pre-built release binaries which are available for OSX, Linux, FreeBSD, and Windows. Instructions for using these binaries are on the GitHub releases page.

If you want to try the latest version, you can build Tile38 from the master branch.

OS X

To get started on OSX run the following in a terminal:

curl -L https://github.com/tidwall/tile38/releases/download/1.4.1/tile38-1.4.1-darwin-amd64.zip -o tile38-1.4.1-darwin-amd64.zip unzip tile38-1.4.1-darwin-amd64.zip cd tile38-1.4.1-darwin-amd64 ./tile38-server

Linux

To get started on Linux run the following in a terminal:

curl -L https://github.com/tidwall/tile38/releases/download/1.4.1/tile38-1.4.1-linux-amd64.tar.gz -o tile38-1.4.1-linux-amd64.tar.gz tar xzvf tile38-1.4.1-linux-amd64.tar.gz cd tile38-1.4.1-linux-amd64 ./tile38-server

FreeBSD

To get started on FreeBSD run the following in a terminal:

curl -L https://github.com/tidwall/tile38/releases/download/1.4.1/tile38-1.4.1-freebsd-amd64.tar.gz -o tile38-1.4.1-freebsd-amd64.tar.gz tar xzvf tile38-1.4.1-freebsd-amd64.tar.gz cd tile38-1.4.1-freebsd-amd64 ./tile38-server

Or install from packages:

pkg install tile38

Or from the ports:

make -C /usr/ports/databases/tile38 install

Building Tile38

Download, extract and compile Tile38 with:

curl -L https://github.com/tidwall/tile38/archive/1.4.1.tar.gz > tile38-1.4.1.tar.gz tar xzf tile38-1.4.1.tar.gz cd tile38-1.4.1 make

The binaries that are now compiled are available in same directory. Run Tile38 with:

./tile38-server

You can interact with Tile38 using the built-in client:

./tile38-cli tile38> SET fleet truck1 POINT 33.5123 -112.2693 tile38> GET fleet truck1




Star