1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00

add tile38

This commit is contained in:
kev 2021-09-03 11:51:59 +08:00
parent 5c98f2c83b
commit 67a00953be
3 changed files with 36 additions and 1 deletions

View File

@ -408,8 +408,9 @@ A collection of delicious docker recipes.
- [x] jira
- [x] strapi/strapi
- [x] amancevice/superset
- [x] v2ray/official :cn:
- [x] tile38/tile38
- [x] traefik
- [x] v2ray/official :cn:
- [x] mpromonet/v4l2rtspserver :camera:
- [x] centurylink/watchtower
- [x] wekanteam/wekan

25
tile38/README.md Normal file
View File

@ -0,0 +1,25 @@
tile38
======
[Tile38][1] 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.
```bash
$ docker-compose up -d
$ docker-compose exec tile38 tile38-cli
### add a couple of points named 'truck1' and 'truck2' to a collection named 'fleet'.
>>> SET fleet truck1 point 33.5123 -112.2693 # on the Loop 101 in Phoenix
>>> SET fleet truck2 point 33.4626 -112.1695 # on the I-10 in Phoenix
### search the 'fleet' collection.
>>> SCAN fleet # returns both trucks in 'fleet'
>>> nearby fleet point 33.462 -112.268 6000 # search 6 kilometers around a point. returns one truck.
### key value operations
>>> GET fleet truck1 # returns 'truck1'
>>> DEL fleet truck2 # deletes 'truck2'
>>> DROP fleet # removes all
### creates a webhook which points to a geofenced search
>>> SETHOOK warehouse http://example.com/webhook NEARBY fleet FENCE POINT 33.5123 -112.2693 500
```
[1]: https://github.com/tidwall/tile38

View File

@ -0,0 +1,9 @@
version: "3.8"
services:
tile38:
image: tile38/tile38
ports:
- "9851:9851"
volumes:
- ./data:/data
restart: unless-stopped