mirror of https://github.com/tidwall/tile38.git
doc typos
This commit is contained in:
parent
3b209723ef
commit
8d7290915e
|
@ -26,7 +26,7 @@ Tile38 is an open source (MIT licensed), in-memory geolocation data store, spati
|
||||||
- Spatial index with [search](#searching) methods such as Nearby, Within, and Intersects.
|
- Spatial index with [search](#searching) methods such as Nearby, Within, and Intersects.
|
||||||
- Realtime [geofencing](#geofencing) through persistent sockets or [webhooks](http://tile38.com/commands/sethook).
|
- Realtime [geofencing](#geofencing) through persistent sockets or [webhooks](http://tile38.com/commands/sethook).
|
||||||
- Object types of [lat/lon](#latlon-point), [bbox](#bounding-box), [Geohash](#geohash), [GeoJSON](#geojson), [QuadKey](#quadkey), and [XYZ tile](#xyz-tile).
|
- Object types of [lat/lon](#latlon-point), [bbox](#bounding-box), [Geohash](#geohash), [GeoJSON](#geojson), [QuadKey](#quadkey), and [XYZ tile](#xyz-tile).
|
||||||
- Support for lots of [Clients Libraries](#client-libraries) written in many different langauges.
|
- Support for lots of [Clients Libraries](#client-libraries) written in many different languages.
|
||||||
- Variety of protocols, including [http](#http) (curl), [websockets](#websockets), [telnet](#telnet), and the [Redis RESP](http://redis.io/topics/protocol).
|
- Variety of protocols, including [http](#http) (curl), [websockets](#websockets), [telnet](#telnet), and the [Redis RESP](http://redis.io/topics/protocol).
|
||||||
- Server responses are [RESP](http://redis.io/topics/protocol) or [JSON](http://www.json.org).
|
- Server responses are [RESP](http://redis.io/topics/protocol) or [JSON](http://www.json.org).
|
||||||
- Full [command line interface](#cli).
|
- Full [command line interface](#cli).
|
||||||
|
@ -203,7 +203,7 @@ The `detect` may be one of the following values.
|
||||||
All object types except for XYZ Tiles and QuadKeys can be stored in a collection. XYZ Tiles and QuadKeys are reserved for the SEARCH keyword only.
|
All object types except for XYZ Tiles and QuadKeys can be stored in a collection. XYZ Tiles and QuadKeys are reserved for the SEARCH keyword only.
|
||||||
|
|
||||||
#### Lat/lon point
|
#### Lat/lon point
|
||||||
The most basic object type is a point that is composed of a latitude and a longitude. There is an optional `z` member that may be used for auxilary data such as elevation or a timestamp.
|
The most basic object type is a point that is composed of a latitude and a longitude. There is an optional `z` member that may be used for auxiliary data such as elevation or a timestamp.
|
||||||
```
|
```
|
||||||
set fleet truck1 point 33.5123 -112.2693 # plain lat/lon
|
set fleet truck1 point 33.5123 -112.2693 # plain lat/lon
|
||||||
set fleet truck1 point 33.5123 -112.2693 225 # lat/lon with z member
|
set fleet truck1 point 33.5123 -112.2693 225 # lat/lon with z member
|
||||||
|
|
|
@ -56,7 +56,7 @@ func main(){
|
||||||
}()
|
}()
|
||||||
time.Sleep(time.Second / 2) // wait a moment
|
time.Sleep(time.Second / 2) // wait a moment
|
||||||
|
|
||||||
// Retreive the point we just set.
|
// Retrieve the point we just set.
|
||||||
go func() {
|
go func() {
|
||||||
conn, err := pool.Get() // get a conn from the pool
|
conn, err := pool.Get() // get a conn from the pool
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -71,4 +71,4 @@ func main(){
|
||||||
}()
|
}()
|
||||||
time.Sleep(time.Second / 2) // wait a moment
|
time.Sleep(time.Second / 2) // wait a moment
|
||||||
}
|
}
|
||||||
```
|
```:q
|
|
@ -48,7 +48,7 @@ func TileXYToBounds(tileX, tileY int64, levelOfDetail uint64) (minLat, minLon, m
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// QuadKeyToBounds convers a quadkey to bounds
|
// QuadKeyToBounds converts a quadkey to bounds
|
||||||
func QuadKeyToBounds(quadkey string) (minLat, minLon, maxLat, maxLon float64, err error) {
|
func QuadKeyToBounds(quadkey string) (minLat, minLon, maxLat, maxLon float64, err error) {
|
||||||
for i := 0; i < len(quadkey); i++ {
|
for i := 0; i < len(quadkey); i++ {
|
||||||
switch quadkey[i] {
|
switch quadkey[i] {
|
||||||
|
|
|
@ -9,7 +9,7 @@ Tile38 is an open source (MIT licensed), in-memory geolocation data store, spati
|
||||||
- Spatial index with [search](#searching) methods such as Nearby, Within, and Intersects.
|
- Spatial index with [search](#searching) methods such as Nearby, Within, and Intersects.
|
||||||
- Realtime [geofencing](#geofencing) through persistent sockets or [webhooks](http://tile38.com/commands/sethook).
|
- Realtime [geofencing](#geofencing) through persistent sockets or [webhooks](http://tile38.com/commands/sethook).
|
||||||
- Object types of [lat/lon](#latlon-point), [bbox](#bounding-box), [Geohash](#geohash), [GeoJSON](#geojson), [QuadKey](#quadkey), and [XYZ tile](#xyz-tile).
|
- Object types of [lat/lon](#latlon-point), [bbox](#bounding-box), [Geohash](#geohash), [GeoJSON](#geojson), [QuadKey](#quadkey), and [XYZ tile](#xyz-tile).
|
||||||
- Support for lots of [Clients Libraries](#client-libraries) written in many different langauges.
|
- Support for lots of [Clients Libraries](#client-libraries) written in many different languages.
|
||||||
- Variety of protocols, including [http](#http) (curl), [websockets](#websockets), [telnet](#telnet), and the [Redis RESP](http://redis.io/topics/protocol).
|
- Variety of protocols, including [http](#http) (curl), [websockets](#websockets), [telnet](#telnet), and the [Redis RESP](http://redis.io/topics/protocol).
|
||||||
- Server responses are [RESP](http://redis.io/topics/protocol) or [JSON](http://www.json.org).
|
- Server responses are [RESP](http://redis.io/topics/protocol) or [JSON](http://www.json.org).
|
||||||
- Full [command line interface](#cli).
|
- Full [command line interface](#cli).
|
||||||
|
|
|
@ -76,7 +76,7 @@ type Object interface {
|
||||||
CalculatedPoint() Position
|
CalculatedPoint() Position
|
||||||
// JSON is the json representation of the object. This might not be exactly the same as the original.
|
// JSON is the json representation of the object. This might not be exactly the same as the original.
|
||||||
JSON() string
|
JSON() string
|
||||||
// String returns a string represenation of the object. This may be JSON or something else.
|
// String returns a string representation of the object. This may be JSON or something else.
|
||||||
String() string
|
String() string
|
||||||
// Bytes is the bytes representation of the object.
|
// Bytes is the bytes representation of the object.
|
||||||
Bytes() []byte
|
Bytes() []byte
|
||||||
|
|
|
@ -281,7 +281,7 @@ func d3disconnectBranch(node *d3nodeT, index int) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pick a branch. Pick the one that will need the smallest increase
|
// Pick a branch. Pick the one that will need the smallest increase
|
||||||
// in area to accomodate the new rectangle. This will result in the
|
// in area to accommodate the new rectangle. This will result in the
|
||||||
// least total area for the covering rectangles in the current node.
|
// least total area for the covering rectangles in the current node.
|
||||||
// In case of a tie, pick the one which was smaller before, to get
|
// In case of a tie, pick the one which was smaller before, to get
|
||||||
// the best resolution when searching.
|
// the best resolution when searching.
|
||||||
|
|
Loading…
Reference in New Issue