public function jsonSerialize()
    {
        $points = [];
        foreach ($this->points as $point) {
            $points[] = $point->jsonSerialize();
        }

        return new \GeoJson\Geometry\MultiPoint($points);
    }
public function jsonSerialize()
    {
        $points = [];
        foreach ($this->points as $point) {
            $points[] = $point->jsonSerialize();
        }

        return new \GeoJson\Geometry\MultiPoint($points);
    }
public function jsonSerialize ( ) { $ points = [ ] ; foreach ( $ this -> points as $ point ) { $ points [ ] = $ point -> jsonSerialize ( ) ; } return new \ GeoJson \ Geometry \ MultiPoint ( $ points ) ; }
Convert to GeoJson MultiPoint that is jsonable to GeoJSON

@return \GeoJson\Geometry\MultiPoint
Convert to GeoJson MultiPoint that is jsonable to GeoJSON