Scripts2026年7月18日·1 分钟阅读

Tile38 — Real-Time Geospatial Database with Geofencing

A high-performance geospatial database and geofencing server written in Go.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
Tile38 Overview
直接安装命令
npx -y tokrepo@latest install 75b21b74-82a5-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

Tile38 is an open-source in-memory geospatial database and geofencing server. It stores geographic objects (points, polygons, GeoJSON) and provides real-time spatial queries, geofencing with webhook notifications, and a Redis-compatible protocol. It is designed for IoT fleet tracking, logistics, and location-aware applications.

What Tile38 Does

  • Stores and indexes geographic points, lines, polygons, and GeoJSON objects
  • Runs spatial queries (NEARBY, WITHIN, INTERSECTS) with sub-millisecond latency
  • Triggers real-time geofence events via webhooks, gRPC, MQTT, or Kafka
  • Provides roaming geofences that move with tracked objects
  • Persists data to disk with append-only file durability

Architecture Overview

Tile38 uses an R-tree spatial index for fast range and proximity queries. It speaks the Redis RESP protocol, so any Redis client can connect. Data is stored in memory for speed and persisted to an append-only file on disk. Geofences are evaluated continuously as objects move, with events dispatched to configured endpoints in real time.

Self-Hosting & Configuration

  • Run via Docker or download a single binary for Linux, macOS, or Windows
  • Data directory defaults to ./data; configure with --dir flag
  • Set authentication with CONFIG SET requirepass
  • Configure max memory and eviction policies via CONFIG commands
  • Expose port 9851 (default) and optionally enable TLS

Key Features

  • Sub-millisecond spatial queries on millions of objects
  • Real-time geofencing with enter, exit, and cross notifications
  • Roaming geofences that track proximity between moving objects
  • GeoJSON, WKT, and simple point/bounds input formats
  • Redis-compatible protocol for easy client integration in any language

Comparison with Similar Tools

  • PostGIS — Full SQL power with PostgreSQL; Tile38 is faster for real-time geofencing
  • Redis (with geospatial) — Basic geo commands only; Tile38 adds polygons and geofences
  • MongoDB Geospatial — Document-oriented; Tile38 is purpose-built for spatial workloads
  • H3 (Uber) — Hexagonal indexing library; Tile38 is a full database server

FAQ

Q: How many objects can Tile38 handle? A: It comfortably handles millions of objects in memory with sub-ms query times.

Q: Does it support clustering? A: Tile38 supports leader-follower replication but not automatic sharding.

Q: Can I use it with existing Redis clients? A: Yes, it speaks the Redis RESP protocol natively.

Q: How does geofencing work? A: You create a fence query with SETHOOK; Tile38 continuously evaluates object movements and sends webhook notifications on enter/exit events.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产