Debian Codegraph @

doc/source/reference/operations/geolocation_search.rst

raw
1 .. -*- rst -*-
2
3 Geolocation search
4 ==================
5
6 Groonga supports geolocation search. It uses index for
7 search. It means that you can search by geolocation fast
8 like fulltext search.
9
10 Supported features
11 ------------------
12
13 Groonga supports only point as data type. Line, surface and
14 so on aren't supported yet. Here is a feature list:
15
16 #. Groonga can store a point to a column.
17 #. Groonga can search records that have a point in the specified rectangle.
18 #. Groonga can search records that have a point in the specified circle.
19 #. Groonga can calculate distance between two points.
20 #. Groonga can sort records by distance from the specified
21 point in ascending order.
22
23 Here are use cases for Groonga's geolocation search:
24
25 * You list McDonald's around a station.
26 * You list KFC around the current location sort by distance
27 from the current location in ascending order with distance.
28
29 Here are not use cases:
30
31 * You search McDonald's in a city. (Groonga doesn't support
32 geolocation search by a shape except a rectangle and a
33 circle.)
34 * You store a region instead of a point as a lake
35 record. (A column can't has geolocation data except a
36 point.)
37
38 The following figures show about Groonga's geolocation
39 search features.
40
41 Here is a figure that only has records. A black point
42 describes a record. The following figures shows how records
43 are treated.
44
45 .. image:: /images/geo-points.png
46 :alt: only records
47
48
49 Coming soon...
50