Nazar
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.
nazar is a Tile38 client in rust!
The API is a bit sane now albeit still weird.
Install
In your Cargo.toml file add under [dependencies] section
[dependencies]
nazar = "1.0.3"
Usage
SETcommand
use ;
let n = from;
match n.execute
GETcommand
use ;
let n = from;
match n.execute
To open a fence only, it is advisable to use new associated method like this:
let n = new;
Then use n to open a geofence like this:
- Open a static
FENCEusingopen_fence:
use ;
let work = ;
n.open_fence;
- New API to execute T38 command -
cmd,argandexecute_with_args. This is a high-level API to execute Tile38 commands!
let mut n = from;
n.cmd.arg.arg.arg.arg.arg;
match n.execute_with_args ;
- New API to open a static geofence with GeoJSON object type.
open_fence_within
let n = new;
let work = ;
n.open_fence_within
A work in progress
TODO
- Make sane API.
- Documentation
- Roaming
FENCE