Home
last modified time | relevance | path

Searched refs:geohash (Results 1 – 9 of 9) sorted by relevance

/plugin/spatialhelper/helper/
H A Dindex.php40 * entries should be: array("geohash" => {"id1","id3",})
116 $geohash = $geometry->out('geohash');
117 Logger::debug('Update index for geohash: ' . $geohash);
118 return $this->addToIndex($geohash, $id);
124 * @param string $geohash
129 private function addToIndex(string $geohash, string $id): bool
132 // check index for key/geohash
133 if (!array_key_exists($geohash,
120 addToIndex(string $geohash, string $id) global() argument
[all...]
H A Dsearch.php42 * @see https://stackoverflow.com/questions/13836416/geohash-and-max-distance
81 return $this->findNearby($geometry->out('geohash'), $geometry);
85 * finds nearby elements in the index based on the geohash.
88 * @param string $geohash
94 final public function findNearby(string $geohash, Point $p = null): array
98 $decodedPoint = $_geohashClass->read($geohash);
105 $adjacent ['center'] = $geohash;
122 // if $adjHash similar to geohash
180 'geohash' => $geohash,
99 findNearby(string $geohash, Point $p = null) global() argument
[all...]
/plugin/structgeohash/
H A Dgeohash.js45 function decodeGeoHash(geohash) { argument
52 for (i=0; i<geohash.length; i++) {
53 c = geohash[i];
80 geohash = "";
85 while (geohash.length < precision) {
106 geohash += BASE32[ch];
111 return geohash;
/plugin/geotag/
H A Daction.php66 $geohash = $geotags ['geohash'] ?? null;
99 if (!empty($geohash)) {
100 $event->data ['meta'] [] = ['name' => 'geo.geohash', 'content' => $geohash];
/plugin/geotag/syntax/
H A Dgeotag.php106 $this->geohash($lat, $lon),
132 * Calculate the geohash for this lat/lon pair.
139 private function geohash(float $lat, float $lon): string
145 return (new Point($lon, $lat))->out('geohash');
157 [$lat, $lon, $alt, $geohash, $region, $placename, $country, $showlocation, $style] = $data;
209 $renderer->meta ['geo'] ['geohash'] = $geohash;
115 private function geohash($lat, $lon) { global() function in syntax_plugin_geotag_geotag
/plugin/geophp/vendor/funiq/geophp/src/Adapter/
H A DGeoHash.php109 * Convert the geometry to geohash.
128 $geohash = '';
137 return $geohash;
140 $geohash .= $char;
143 return $geohash;
149 * @see https://github.com/asonge/php-geohash/issues/1
215 * @see https://github.com/asonge/php-geohash/issues/1
299 * Calculates the adjacent geohash of the geohash in the specified direction.
301 * geohash
[all...]
/plugin/spatialhelper/
H A Daction.php53 // handle HTML eg. /dokuwiki/doku.php?id=start&do=findnearby&geohash=u15vk4
61 // handles AJAX/json eg: jQuery.post("/dokuwiki/lib/exe/ajax.php?id=start&call=findnearby&geohash=u15vk4");
210 } elseif ($INPUT->has('geohash')) {
211 $results = $helper->findNearby($INPUT->str('geohash'));
255 $geohash = (string)$searchresults ['geohash'];
279 . ' (geohash: ' . $geohash . ')'
303 . ' (geohash: ' . $geohash
[all...]
/plugin/elasticsearch/vendor/ruflin/elastica/src/Query/
H A DAbstractGeoDistance.php16 public const LOCATION_TYPE_GEOHASH = 'geohash';
22 * Decides if this query uses latitude/longitude or geohash for the location.
23 * Values are "latlon" or "geohash".
60 * @param array|string $location Location as array or geohash: array('lat' => 48.86, 'lon' => 2.35) OR 'drm3btev3e86'
107 throw new InvalidException('$location has to be an array (latitude/longitude) or a string (geohash)');
138 public function setGeohash(string $geohash): self argument
140 $this->_geohash = $geohash;
/plugin/elasticsearch/vendor/ruflin/elastica/
H A DCHANGELOG.md1776 - Change Elastica_Filter_GeoDistance::__construct(), accepts geohash parameter (BC break, before: ($key, $latitude, $longitude, $distance), after: ($key, $location, $distance) where $location is array('lat' => $latitude, 'lon' => $longitude) or a geohash)