PHPマニュアル/PEARマニュアル | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot

SphinxClient::setGeoAnchor - Set anchor point for a geosphere distance calculations | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

SphinxClient::setGeoAnchor

(PECL sphinx >= 0.1.0)

SphinxClient::setGeoAnchorSet anchor point for a geosphere distance calculations

説明

public bool SphinxClient::setGeoAnchor ( string $attrlat , string $attrlong , float $latitude , float $longitude )

Sets anchor point for a geosphere distance (geodistance) calculations and enables them.

Once an anchor point is set, you can use magic "@geodist" attribute name in your filters and/or sorting expressions.

パラメータ

attrlat

Name of a latitude attribute.

attrlong

Name of a longitude attribute.

latitude

Anchor latitude in radians.

longitude

Anchor longitude in radians.

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。


忘却曲線を使ってこの知識を確実に記憶に残す

フォーラムで「SphinxClient::setGeoAnchor - Set anchor point for a geosphere distance calculations」について話す
各種マニュアル: PHPマニュアル | PEARマニュアル | Smarty(英語)マニュアル | PHP-GTKマニュアル | SphinxClient::setGeoAnchor - Set anchor point for a geosphere distance calculations」をGoogle検索
copyright © 1997-2024 PHP ドキュメント作成グループ(ライセンス). provided by php spot. マニュアル: