Lines Matching refs:point
79 * Convert the geoHash to a Point. The point is 2-dimensional.
82 * @param boolean $asGrid Return the center point of hash grid or the grid cell as Polygon
129 foreach ($envelope->getPoints() as $point) {
130 $geoHashes[] = $this->encodePoint($point, 0.0000001);
151 * @param Point $point
156 private function encodePoint($point, $precision = null)
169 $lap = strlen($point->y()) - strpos($point->y(), ".");
170 $lop = strlen($point->x()) - strpos($point->x(), ".");
175 $point->x() < $minLongitude || $point->y() < $minLatitude ||
176 $point->x() > $maxLongitude || $point->y() > $maxLatitude
178 throw new \Exception("Point coordinates ({$point->x()}, {$point->y()}) are out of lat/lon range");
187 if ($point->x() > $next) {
197 if ($point->y() > $next) {
300 * This algorithm is available in various ports that seem to point back to