Sophie

Sophie

distrib > Fedora > 18 > x86_64 > media > updates > by-pkgid > e450e7f3d6075c4a54de19e68d38177f > files > 213

groonga-doc-3.0.5-1.fc18.x86_64.rpm


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>6. Geolocation Search &mdash; groonga v3.0.5 documentation</title>
    
    <link rel="stylesheet" href="_static/groonga.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    './',
        VERSION:     '3.0.5',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="shortcut icon" href="_static/favicon.ico"/>
    <link rel="top" title="groonga v3.0.5 documentation" href="index.html" />
    <link rel="next" title="7. Server" href="server.html" />
    <link rel="prev" title="5.5. Suggestion" href="suggest/suggestion.html" /> 
  </head>
  <body>
<div class="header">
  <h1 class="title">
    <a id="top-link" href="index.html">
      <span class="project">groonga</span>
      <span class="separator">-</span>
      <span class="description">An open-source fulltext search engine and column store.</span>
    </a>
  </h1>

  <div class="other-language-links">
    <ul>
      <li><a href="../../ja/html/geolocation_search.html"><img src="_static/jp.png" alt="日本語">日本語版はこちら</a></li>
    </ul>
  </div>
</div>
  

    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="server.html" title="7. Server"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="suggest/suggestion.html" title="5.5. Suggestion"
             accesskey="P">previous</a> |</li>
        <li><a href="index.html">groonga v3.0.5 documentation</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="geolocation-search">
<h1>6. Geolocation Search<a class="headerlink" href="#geolocation-search" title="Permalink to this headline">¶</a></h1>
<p>Groonga supports geolocation search. It uses index for
search. It means that you can search by geolocation fast
like fulltext search.</p>
<div class="section" id="supported-features">
<h2>6.1. Supported features<a class="headerlink" href="#supported-features" title="Permalink to this headline">¶</a></h2>
<p>Groonga supports only point as data type. Line, surface and
so on aren't supported yet. Here is a feature list:</p>
<ol class="arabic simple">
<li>Groonga can store a point to a column.</li>
<li>Groonga can search records that have a point in the specified rectangle.</li>
<li>Groonga can search records that have a point in the specified circle.</li>
<li>Groonga can calculate distance between two points.</li>
<li>Groonga can sort records by distance from the specified
point in ascending order.</li>
</ol>
<p>Here are use cases for groonga's geolocation search:</p>
<ul class="simple">
<li>You list McDonald's around a station.</li>
<li>You list KFS around the current location sort by distance
from the current location in ascending order with distance.</li>
</ul>
<p>Here are not use cases:</p>
<ul class="simple">
<li>You search McDonald's in a city. (Groonga doesn't support
geolocation search by a shape except a rectangle and a
circle.)</li>
<li>You store a region instead of a point as a lake
record. (A column can't has geolocation data except a
point.)</li>
</ul>
<p>The following figures show about groonga's geolocation
search features.</p>
<p>Here is a figure that only has records. A black point
describes a record. The following figures shows how records
are treated.</p>
<img alt="only records" src="_images/geo-points.png" />
<p>Coming soon...</p>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
  <h3><a href="index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">6. Geolocation Search</a><ul>
<li><a class="reference internal" href="#supported-features">6.1. Supported features</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="suggest/suggestion.html"
                        title="previous chapter">5.5. Suggestion</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="server.html"
                        title="next chapter">7. Server</a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="_sources/geolocation_search.txt"
           rel="nofollow">Show Source</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="server.html" title="7. Server"
             >next</a> |</li>
        <li class="right" >
          <a href="suggest/suggestion.html" title="5.5. Suggestion"
             >previous</a> |</li>
        <li><a href="index.html">groonga v3.0.5 documentation</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2009-2013, Brazil, Inc.
    </div>
  </body>
</html>