Sleimanx2\Plastic\Map\Grammar::compilePoint PHP Method

compilePoint() public method

Compile a geo point map.
public compilePoint ( Illuminate\Support\Fluent $fluent ) : array
$fluent Illuminate\Support\Fluent
return array
    public function compilePoint(Fluent $fluent)
    {
        $map = ['type' => 'geo_point', 'geohash' => $fluent->geohash, 'geohash_precision' => $fluent->geohash_precision, 'geohash_prefix' => $fluent->geohash_prefix, 'ignore_malformed' => $fluent->ignore_malformed, 'lat_lon' => $fluent->lat_lon, 'precision_step' => $fluent->precision_step];
        return $this->formatMap($map);
    }