[Groonga-commit] groonga/groonga [master] doc en: add more concrete examples

Back to archive index

HAYASHI Kentaro null+****@clear*****
Wed Nov 14 18:47:56 JST 2012


HAYASHI Kentaro	2012-11-14 18:47:56 +0900 (Wed, 14 Nov 2012)

  New Revision: bed0bd258ee2fc4f708bf8582de2c248a34e9942
  https://github.com/groonga/groonga/commit/bed0bd258ee2fc4f708bf8582de2c248a34e9942

  Log:
    doc en: add more concrete examples

  Modified files:
    doc/source/reference/functions/geo_distance.txt

  Modified: doc/source/reference/functions/geo_distance.txt (+11 -0)
===================================================================
--- doc/source/reference/functions/geo_distance.txt    2012-11-14 18:47:39 +0900 (d740c3e)
+++ doc/source/reference/functions/geo_distance.txt    2012-11-14 18:47:56 +0900 (21cb9f1)
@@ -217,6 +217,17 @@ Here is a sample about calculating the value of distance with explicitly specifi
 
 .. include:: ../../example/reference/functions/geo_distance_distance_rectangle.log
 
+Here are samples about calculating the value of distance with explicitly specified point across meridian, equator, the date line.
+
+.. groonga-command
+.. include:: ../../example/reference/functions/geo_distance_distance_rectangle_across.log
+.. # Calculate the value of distance from Sydney,Australia to New York,The United States (across the date line).
+.. select Geo --output_columns distance --scorer 'distance = geo_distance("-121926000x544351000", "146566000x-266422000", "rectangle")'
+.. # Calculate the value of distance from Paris,Flance to Madrid,Spain (across meridian).
+.. select Geo --output_columns distance --scorer 'distance = geo_distance("175904000x8464000", "145508000x-13291000", "rectangle")'
+.. # Calculate the value of distance from New York,The United Status to Brasillia,Brasil (across equator).
+.. select Geo --output_columns distance --scorer 'distance = geo_distance("146566000x-266422000", "-56880000x-172310000", "rectangle")'
+
 .. note::
 
     ``geo_distance`` uses square approximation as default. If you omit ``approximate_type``, ``geo_distance`` behaves like ``rectangle`` was specified.
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index