public function isCoordinateOnVertex(LatLng $coord)
    {
        $paths = ArrayHelper::getValue($this->options, 'paths');
        foreach ($paths as $vertex) {
            if ($vertex->lat == $coord->lat && $vertex->lng == $coord->lng) {
                return true;
            }
        }
        return false;
    }
public function isCoordinateOnVertex(LatLng $coord)
    {
        $paths = ArrayHelper::getValue($this->options, 'paths');
        foreach ($paths as $vertex) {
            if ($vertex->lat == $coord->lat && $vertex->lng == $coord->lng) {
                return true;
            }
        }
        return false;
    }
public function isCoordinateOnVertex ( LatLng $ coord ) { $ paths = ArrayHelper :: getValue ( $ this -> options , 'paths' ) ; foreach ( $ paths as $ vertex ) { if ( $ vertex -> lat == $ coord -> lat && $ vertex -> lng == $ coord -> lng ) { return true ; } } return false ; }
Returns true if coordinate is vertex of polygon.

@param LatLng $coord

@return bool whether point is vertex of polygon
Returns true if coordinate is vertex of polygon .